From 9f05c58316d2dc31529e6fb267da54390b31dfe5 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Wed, 12 Mar 2025 18:11:25 -0400 Subject: [PATCH] remove o1 models as they don't support system message (#5) --- README.md | 12 ++++++++---- src/react_agent/configuration.py | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a22f673..29c503f 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,12 @@ If you already have a tool server running, you can launch the ReAct agent with t # Specify at least one chat model API key! export ANTHROPIC_API_KEY="..." export OPENAI_API_KEY="..." -# Specify the tool server URL and API key -TOOL_SERVER_API_KEY="Authorization header token" # This depends on how you have configured the tool server, and whether you have enabled authentication. if there's no authentication, just put a random string here. -TOOL_SERVER_URL=http://localhost:8000 TOOL_SERVER_API_KEY=$TOOL_SERVER_API_KEY uv run langgraph dev -``` +# If you enabled auth on the tool server, set the API key. +# If you disabled auth, you set it to a non empty placeholder string. +export TOOL_SERVER_API_KEY="Authorization header token" +# Set the tool server URL +export TOOL_SERVER_URL="http://localhost:8000" +# Launch the ReAct agent +uv run langgraph dev +```` diff --git a/src/react_agent/configuration.py b/src/react_agent/configuration.py index d9d9f98..b3206df 100644 --- a/src/react_agent/configuration.py +++ b/src/react_agent/configuration.py @@ -57,7 +57,7 @@ def identify_available_model_providers() -> list[str]: PROVIDER_TO_MODELS = { - "openai": ["openai/o1", "openai/gpt-4o-mini", "openai/o1-mini", "openai/o3-mini"], + "openai": ["openai/gpt-4o-mini", "openai/o3-mini"], "anthropic": [ "anthropic/claude-3-7-sonnet-latest", "anthropic/claude-3-5-haiku-latest",