mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
style: fix ruff format and prettier formatting
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c5e40e6345
commit
d2aee7e659
2 changed files with 211 additions and 629 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -91,13 +91,21 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({
|
|||
const [oauthDocsUrl, setOauthDocsUrl] = useState<string | null>(null);
|
||||
|
||||
// Single hook call shared by MCPConnectionStatus and MCPToolConfiguration to avoid duplicate requests.
|
||||
const { tools, isLoadingTools, toolsError, toolsErrorStatus, toolsErrorStackTrace, canFetchTools, fetchTools, clearTools } =
|
||||
useTestMCPConnection({
|
||||
accessToken,
|
||||
oauthAccessToken,
|
||||
formValues,
|
||||
enabled: true,
|
||||
});
|
||||
const {
|
||||
tools,
|
||||
isLoadingTools,
|
||||
toolsError,
|
||||
toolsErrorStatus,
|
||||
toolsErrorStackTrace,
|
||||
canFetchTools,
|
||||
fetchTools,
|
||||
clearTools,
|
||||
} = useTestMCPConnection({
|
||||
accessToken,
|
||||
oauthAccessToken,
|
||||
formValues,
|
||||
enabled: true,
|
||||
});
|
||||
|
||||
const authType = formValues.auth_type as string | undefined;
|
||||
const shouldShowAuthValueField = authType ? AUTH_TYPES_REQUIRING_AUTH_VALUE.includes(authType) : false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue