mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-27 01:22:18 +00:00
fix(oci): remove dead OCI elif branch in utils.py, align async split_chunks with sync version
This commit is contained in:
parent
0647074846
commit
dcfdaa4ac4
2 changed files with 3 additions and 7 deletions
|
|
@ -784,9 +784,9 @@ class OCIChatConfig(BaseConfig):
|
|||
async def split_chunks(completion_stream: AsyncIterator[str]):
|
||||
async for item in completion_stream:
|
||||
for chunk in item.split("\n\n"):
|
||||
if not chunk:
|
||||
continue
|
||||
yield chunk.strip()
|
||||
stripped = chunk.strip()
|
||||
if stripped:
|
||||
yield stripped
|
||||
|
||||
streaming_response = OCIStreamWrapper(
|
||||
completion_stream=split_chunks(completion_stream),
|
||||
|
|
|
|||
|
|
@ -8444,10 +8444,6 @@ class ProviderConfigManager:
|
|||
return SagemakerEmbeddingConfig.get_model_config(model)
|
||||
elif litellm.LlmProviders.PERPLEXITY == provider:
|
||||
return litellm.PerplexityEmbeddingConfig()
|
||||
elif litellm.LlmProviders.OCI == provider:
|
||||
from litellm.llms.oci.embed.transformation import OCIEmbeddingConfig
|
||||
|
||||
return OCIEmbeddingConfig()
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue