fix: remove duplicate line and add explicit env var

This commit is contained in:
Greyson LaLonde
2025-10-09 12:44:29 -04:00
committed by GitHub
parent faddcd0de7
commit 06f7d224c0
2 changed files with 1 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ def _default_embedding_function() -> ChromaEmbeddingFunctionWrapper:
OpenAIEmbeddingFunction(
api_key=os.getenv("OPENAI_API_KEY"),
model_name="text-embedding-3-small",
api_key_env_var="OPENAI_API_KEY",
),
)

View File

@@ -398,7 +398,6 @@ def is_context_length_exceeded(exception: Exception) -> bool:
return (
LLMContextLengthExceededError(str(exception))
._is_context_limit_error(str(exception))
._is_context_limit_error(str(exception))
)