mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 08:38:30 +00:00
fix: remove duplicate line and add explicit env var
This commit is contained in:
@@ -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",
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -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))
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user