Skip to content

Conversation

giterinhub
Copy link

Description

The new default model for OpenAI is gpt-4o, but gpt-4o-mini is much cheaper and should be the default. This change only updates the documentation, but the change from 4-o to 4-o-mini should also be applied in https://github.com/dapr/components-contrib/blob/main/conversation/openai/metadata.yaml (currently incorrectly on 4-turbo)

@giterinhub giterinhub requested review from a team as code owners April 5, 2025 21:53
@msfussell
Copy link
Member

@giterinhub - Is there a corresponding code issue tracking this that you are aware of?

@giterinhub
Copy link
Author

Created dapr/components-contrib#3792

@giterinhub
Copy link
Author

@giterinhub - Is there a corresponding code issue tracking this that you are aware of?

No issue I'm aware of, just created the PR. Thanks for the good time at the Boom Battle Mark!

@giterinhub giterinhub changed the title Set OpenAI Model to gpt-4o-mini and Updated Spec Defaults Reference Models Centrally, set OpenAI Model to gpt-5-nano and Updated Spec Defaults Aug 29, 2025
@giterinhub giterinhub reopened this Aug 29, 2025
@msfussell msfussell removed the waiting-on-code-pr The code PR needs to be merged before the docs are updated label Sep 13, 2025
@msfussell
Copy link
Member

@giterinhub - Can you review this PR now the code is in. In particular can you address
@sicoyle @bibryam - Please review

  1. How is the AZURE_OPENAI_MODEL env used and by which component? How does this relate to the apiType field here https://v1-16.docs.dapr.io/reference/components-reference/supported-conversation/openai/ used to set Azure usage?
  2. Why have you included the OLLAMA model, there is an existing MD file, I presume this is not needed or update the existing one?
  3. Can you update the https://v1-16.docs.dapr.io/reference/environment/ list with the list of these 7 env variables with a description of each one.
  4. Should there be an env var for AWS Bedrock and if not why?

…xamples

- Add and document runtime env vars: OPENAI_MODEL, AZURE_OPENAI_MODEL, ANTHROPIC_MODEL, GOOGLEAI_MODEL, MISTRAL_MODEL, HUGGINGFACE_MODEL, OLLAMA_MODEL (with defaults)
- Update environment reference page with the new env var names and defaults
- Replace env-var placeholders in component YAML examples with literal default model names for OpenAI, GoogleAI, Anthropic, Mistral, Hugging Face and Ollama
- Add "(configurable via '<ENV>' environment variable)" to each provider's Spec metadata table to show override option
- Add Azure OpenAI usage section to `conversation.openai` doc (how to use `apiType: azure` and `AZURE_OPENAI_MODEL`)
- Clarify AWS Bedrock uses standard AWS auth (no Bedrock-specific env var added)
- Fix small markdown lint issues (trailing newlines/whitespace)

Signed-off-by: Erin La <[email protected]>
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