Skip to content

fix: make model configurable via DASH_MODEL env var (default: gpt-4o)#17

Open
Arvuno wants to merge 1 commit into
agno-agi:mainfrom
Arvuno:fix/make-model-configurable
Open

fix: make model configurable via DASH_MODEL env var (default: gpt-4o)#17
Arvuno wants to merge 1 commit into
agno-agi:mainfrom
Arvuno:fix/make-model-configurable

Conversation

@Arvuno
Copy link
Copy Markdown

@Arvuno Arvuno commented May 22, 2026

Summary

The codebase had gpt-5.4 hardcoded as the model ID in three locations. GPT-5.4 does not exist in OpenAI's API, making Dash completely non-functional out of the box.

This PR extracts the model ID into a DASH_MODEL environment variable with a safe default of gpt-4o.

Changes

File Change
dash/settings.py MODEL_ID = getenv("DASH_MODEL", "gpt-4o") then MODEL = OpenAIResponses(id=MODEL_ID)
evals/__init__.py JUDGE_MODEL uses getenv("DASH_MODEL", "gpt-4o")
evals/improve.py get_improvement_plan uses getenv("DASH_MODEL", "gpt-4o") for the bare OpenAI() client call
example.env Documents DASH_MODEL=gpt-4o
README.md Adds DASH_MODEL to the Environment Variables table

Testing

N/A (no code logic changed, only config extraction).

Notes

  • evals/improve.py still uses the bare OpenAI() client (as noted in Q-2). That is a separate issue to address.
  • The model name gpt-5.4 in the docstring of evals/improve.py:5 was left as-is since it's documentation about what the loop is trying to do, not functional code.

The hardcoded gpt-5.4 model ID doesn't exist and blocks all agent functionality.
Extract to DASH_MODEL env var with safe default gpt-4o.

Changes:
- dash/settings.py: MODEL_ID from env var, MODEL uses MODEL_ID
- evals/__init__.py: JUDGE_MODEL uses DASH_MODEL env var
- evals/improve.py: get_improvement_plan uses DASH_MODEL env var
- example.env: document DASH_MODEL
- README.md: add DASH_MODEL to env vars table
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.

1 participant