mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-03 07:23:33 +00:00
fix(mcp): keep token guard within lint condition budget
This commit is contained in:
parent
166f54e33c
commit
6ed14e006a
1 changed files with 4 additions and 1 deletions
|
|
@ -82,7 +82,10 @@ export const useTestMCPConnection = ({
|
|||
const credentialsKey = JSON.stringify(formValues.credentials ?? {});
|
||||
|
||||
const fetchTools = async () => {
|
||||
if (!accessToken || !hasRequiredAuthValue || (!formValues.url && !formValues.spec_path)) {
|
||||
if (!hasRequiredAuthValue) {
|
||||
return;
|
||||
}
|
||||
if (!accessToken || (!formValues.url && !formValues.spec_path)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue