mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-30 01:52:18 +00:00
fmt
This commit is contained in:
parent
d417d83e10
commit
ad70509c66
2 changed files with 4 additions and 3 deletions
|
|
@ -112,9 +112,9 @@ class SambanovaConfig(OpenAIGPTConfig):
|
|||
Adds X-Integration-Source header for analytics tracking.
|
||||
Priority: User parameter > Env var > Default value ("litellm")
|
||||
"""
|
||||
|
||||
|
||||
integration_source = (
|
||||
optional_params.get('extra_body',{}).pop("integration_source", None)
|
||||
optional_params.get("extra_body", {}).pop("integration_source", None)
|
||||
or get_secret_str("SAMBANOVA_INTEGRATION_SOURCE")
|
||||
or "litellm"
|
||||
)
|
||||
|
|
@ -156,6 +156,7 @@ class SambanovaConfig(OpenAIGPTConfig):
|
|||
SambaNova API doesn't support content as a list - only string content.
|
||||
This converts content lists like [{"type": "text", "text": "..."}] to strings.
|
||||
"""
|
||||
|
||||
async def _async_transform():
|
||||
return handle_messages_with_content_list_to_str_conversion(messages)
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class SambaNovaEmbeddingConfig(BaseEmbeddingConfig):
|
|||
# Add X-Integration-Source header with priority handling
|
||||
# Priority: User parameter > Env var > Default value ("litellm")
|
||||
integration_source = (
|
||||
optional_params.get('extra_body',{}).pop("integration_source", None)
|
||||
optional_params.get("extra_body", {}).pop("integration_source", None)
|
||||
or get_secret_str("SAMBANOVA_INTEGRATION_SOURCE")
|
||||
or "litellm"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue