mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-28 01:32:17 +00:00
fix: format Morph provider config
This commit is contained in:
parent
677b716c08
commit
81c3598ec8
1 changed files with 1 additions and 3 deletions
|
|
@ -25,9 +25,7 @@ class MorphChatConfig(OpenAILikeChatConfig):
|
|||
self, api_base: str | None, api_key: str | None
|
||||
) -> tuple[str | None, str | None]:
|
||||
api_base = (
|
||||
api_base
|
||||
or get_secret_str("MORPH_API_BASE")
|
||||
or "https://api.morphllm.com/v1" # default api base
|
||||
api_base or get_secret_str("MORPH_API_BASE") or "https://api.morphllm.com/v1" # default api base
|
||||
)
|
||||
dynamic_api_key: Final = api_key or get_secret_str("MORPH_API_KEY")
|
||||
return api_base, dynamic_api_key
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue