Skip to content

Conversation

andrewtlw
Copy link
Contributor

@andrewtlw andrewtlw commented Aug 28, 2025

Model providers like Groq, Openrouter, AWS Bedrock, VertexAI and others typically prefix the name of gpt-oss models with openai, e.g. openai/gpt-oss-120b.

This PR is to match the model name slug using contains instead of starts_with to ensure that the apply_patch tool is included in the tools for models names like openai/gpt-oss-120b

Without this, the gpt-oss models will often try to call the apply_patch tool directly instead of via the shell command, leading to validation errors.

I have run all the local checks.

Note: The gpt-oss models from non-Ollama providers are typically run via a profile with a different base_url (instead of with the --oss flag)

Copy link

github-actions bot commented Aug 28, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@andrewtlw
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@andrewtlw andrewtlw force-pushed the oss-model-family-slug-matching branch from fac5f52 to 119ed46 Compare August 28, 2025 06:31
github-actions bot added a commit that referenced this pull request Aug 28, 2025
@andrewtlw
Copy link
Contributor Author

hey @dylan-hurd-oai @bolinfest - would love to get any feedback on this, thanks!

@dylan-hurd-oai dylan-hurd-oai self-requested a review September 3, 2025 16:00
Copy link
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

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

1-comment to discuss, but appreciate the simple suggestion!

Andrew Tan and others added 2 commits September 9, 2025 00:04
…ere gpt-oss model names from different providers have a prefix like openai/gpt-oss/120b
@andrewtlw andrewtlw force-pushed the oss-model-family-slug-matching branch from f9c0190 to d3d010b Compare September 8, 2025 16:04
@dylan-hurd-oai dylan-hurd-oai merged commit de6559f into openai:main Sep 9, 2025
18 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants