mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix mypy lint
This commit is contained in:
parent
07447fc8cd
commit
08a6197f10
1 changed files with 5 additions and 2 deletions
|
|
@ -76,10 +76,13 @@ class MCPOAuth2TokenCache(InMemoryCache):
|
|||
"""
|
||||
client = get_async_httpx_client(llm_provider=httpxSpecialProvider.MCP)
|
||||
|
||||
assert server.client_id is not None, "client_id must be set"
|
||||
assert server.client_secret is not None, "client_secret must be set"
|
||||
|
||||
data: Dict[str, str] = {
|
||||
"grant_type": "client_credentials",
|
||||
"client_id": server.client_id, # type: ignore[arg-type]
|
||||
"client_secret": server.client_secret, # type: ignore[arg-type]
|
||||
"client_id": server.client_id,
|
||||
"client_secret": server.client_secret,
|
||||
}
|
||||
if server.scopes:
|
||||
data["scope"] = " ".join(server.scopes)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue