fix(oci): remove dead OCI elif branch in utils.py, align async split_chunks with sync version

This commit is contained in:
Federico Kamelhar 2026-04-05 00:57:21 -04:00
parent 0647074846
commit dcfdaa4ac4
2 changed files with 3 additions and 7 deletions

View file

@ -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),

View file

@ -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