mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
test M2M
This commit is contained in:
parent
9ff9134cf1
commit
d13ba47b71
1 changed files with 3 additions and 1 deletions
|
|
@ -52,7 +52,9 @@ export const useTestMCPConnection = ({
|
|||
const [hasShownSuccessMessage, setHasShownSuccessMessage] = useState(false);
|
||||
|
||||
// Check if we have the minimum required fields to fetch tools
|
||||
const requiresOAuthToken = formValues.auth_type === AUTH_TYPE.OAUTH2;
|
||||
const isM2MOAuth = formValues.auth_type === AUTH_TYPE.OAUTH2
|
||||
&& formValues.oauth_flow_type === "m2m";
|
||||
const requiresOAuthToken = formValues.auth_type === AUTH_TYPE.OAUTH2 && !isM2MOAuth;
|
||||
const canFetchTools = !!(
|
||||
formValues.url &&
|
||||
formValues.transport &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue