Skip to content

fixed the changes to joint names and added env variables. - #26

Open
christymanthara wants to merge 4 commits into
cyberwave-os:mainfrom
christymanthara:feat/adding-openai-agents
Open

fixed the changes to joint names and added env variables.#26
christymanthara wants to merge 4 commits into
cyberwave-os:mainfrom
christymanthara:feat/adding-openai-agents

Conversation

@christymanthara

@christymanthara christymanthara commented Jul 17, 2026

Copy link
Copy Markdown

This PR adds Openrouter as a model provider and openai agents sdk framework for the agent in addition to already existing Anthropic. This is limited to the nl_arm_controller example in the repo

@KhushiSharma22 KhushiSharma22 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Nice addition; routing the planner through OpenRouter via the OpenAI Agents SDK opens up a lot of model flexibility, and the fallback-to-Anthropic design keeps existing setups working.

Everything looks great; there's just one quick change that might block the run in case of default runs. I can fix it for you in case you want that, dropping a comment here. Approving in principle :)

CYBERWAVE_API_KEY = os.environ.get("CYBERWAVE_API_KEY")
ANTHROPIC_API_KEY = os.environ.get("ANTHROPIC_API_KEY")
OPENROUTER_API_KEY = os.environ.get("OPENROUTER_API_KEY")
OPENROUTER_MODEL = os.environ.get("OPENROUTER_MODEL", "google/gemini-2.5-flash-lite-preview-07-15:free")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default OPENROUTER_MODEL here (google/gemini-2.5-flash-lite-preview-07-15:free) disagrees with the default in planner.py (openai/gpt-5.4-mini, in _openrouter_model_name). This file only uses the value for the banner / self-check display, while planner.py uses its own default for the actual call.

Net effect: if a user sets OPENROUTER_API_KEY but leaves OPENROUTER_MODEL unset, the banner reports Gemini while the planner actually runs gpt-5.4-mini. Can we pull the default into one shared constant (or have planner.py import OPENROUTER_MODEL from here) so the displayed model always matches what runs?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed with a common planner config. good catch. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants