Skip to content

Commit 3df5d15

Browse files
fix: Use elif instead of if for Anthropic provider check
This prevents both OpenAI and Anthropic client wrappers from being created when the model is OpenAI, addressing the review comment. Co-authored-by: Andrew Brookins <[email protected]>
1 parent 2d38015 commit 3df5d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent_memory_server/llms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ async def get_model_client(
410410
api_key=settings.openai_api_key,
411411
base_url=settings.openai_api_base,
412412
)
413-
if model_config.provider == ModelProvider.ANTHROPIC:
413+
elif model_config.provider == ModelProvider.ANTHROPIC:
414414
model = AnthropicClientWrapper(
415415
api_key=settings.anthropic_api_key,
416416
base_url=settings.anthropic_api_base,

0 commit comments

Comments
 (0)