Can't get custom small_model to work for title generation #1739

Closed
opened 2026-02-16 17:32:24 -05:00 by yindo · 4 comments
Owner

Originally created by @hd-o on GitHub (Sep 16, 2025).

Originally assigned to: @rekram1-node on GitHub.

I can't get title generation working with any small_model, only without (using default claude-3.5-haiku). Help, please 🙏

Logs

https://gist.github.com/hd-o/b066b3358213107ed81b14d91b00e02c

Config

{
  "$schema": "https://opencode.ai/config.json",
  "model": "openrouter/openai/gpt-5-nano",
  "small_model": "openrouter/openai/gpt-5-nano"
}

Screenshot

Image
Originally created by @hd-o on GitHub (Sep 16, 2025). Originally assigned to: @rekram1-node on GitHub. I can't get title generation working with any `small_model`, only without (using default `claude-3.5-haiku`). Help, please 🙏 ### Logs https://gist.github.com/hd-o/b066b3358213107ed81b14d91b00e02c ### Config ```jsonc { "$schema": "https://opencode.ai/config.json", "model": "openrouter/openai/gpt-5-nano", "small_model": "openrouter/openai/gpt-5-nano" } ``` ### Screenshot <img width="1800" height="1037" alt="Image" src="https://github.com/user-attachments/assets/a9b296d9-1f2e-44fa-8fe9-7c7c5b5c6c44" />
yindo closed this issue 2026-02-16 17:32:24 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 16, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1342: Allow selecting the model for title generation in the config - This was specifically about custom model selection for title generation not working, very similar to your issue
  • #1243: Opencode calls 'Claude 3.5 Haiku' on session start, despite selecting a custom model - Similar pattern where configured OpenRouter models were ignored in favor of defaults
  • #2402: chat.session.prompt should use the last used model like the opencode cli. Instead it defaults to gpt-5-nano - Related issue about model configuration not being respected

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 16, 2025): This issue might be a duplicate of existing issues. Please check: - #1342: Allow selecting the model for title generation in the config - This was specifically about custom model selection for title generation not working, very similar to your issue - #1243: Opencode calls 'Claude 3.5 Haiku' on session start, despite selecting a custom model - Similar pattern where configured OpenRouter models were ignored in favor of defaults - #2402: `chat.session.prompt` should use the last used model like the opencode cli. Instead it defaults to `gpt-5-nano` - Related issue about model configuration not being respected Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 16, 2025):

I will take a look

@rekram1-node commented on GitHub (Sep 16, 2025): I will take a look
Author
Owner

@rekram1-node commented on GitHub (Sep 17, 2025):

You can get around this temporarily by using a non reasoning openai model, I will adjust the title gen logic to set reasoningEffort to low even for all gpt-5 models when generating titles

@rekram1-node commented on GitHub (Sep 17, 2025): You can get around this temporarily by using a non reasoning openai model, I will adjust the title gen logic to set reasoningEffort to low even for all gpt-5 models when generating titles
Author
Owner

@rekram1-node commented on GitHub (Sep 17, 2025):

in next release we will set reasoning effort to minimal for all gpt-5 model variations when generating title and that should resolve issue for you

@rekram1-node commented on GitHub (Sep 17, 2025): in next release we will set reasoning effort to minimal for all gpt-5 model variations when generating title and that should resolve issue for you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1739