mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
util: verify_access_key
Verify that the user provided a valid openai token by creating a request to the openAI endpoint.
This commit is contained in:
parent
10d8a65c6a
commit
09022ad61d
3 changed files with 23 additions and 0 deletions
|
@ -17,6 +17,7 @@ from litellm.utils import (
|
|||
CustomStreamWrapper,
|
||||
read_config_args,
|
||||
completion_with_fallbacks,
|
||||
verify_access_key,
|
||||
)
|
||||
from .llms import anthropic
|
||||
from .llms import together_ai
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue