Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add supports_schema to extra-openai-models.yaml #819

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adaitche
Copy link

@adaitche adaitche commented Mar 6, 2025

Recently support for structured output was added. But custom OpenAI-compatible models didn't support the supports_schema property in the config file extra-openai-models.yaml.

I validated the change by adding the following to my extra-openai-models.yaml:

- model_id: openai_custom
  model_name: gpt-4o-mini
  api_base: "https://api.openai.com/v1"
  api_key_name: openai
  supports_schema: true

and observing the output of

uv run llm -m openai_custom --schema 'name,age int,short_bio' 'invent a cool dog'

Recently support for structured output was added. But custom
OpenAI-compatible models didn't support the `supports_schema` property
in the config file `extra-openai-models.yaml`.
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