Skip to content

fix: session title generation with OpenAI models.#11678

Merged
rekram1-node merged 1 commit intoanomalyco:devfrom
oomathias:fix-small-model-openai
Feb 2, 2026
Merged

fix: session title generation with OpenAI models.#11678
rekram1-node merged 1 commit intoanomalyco:devfrom
oomathias:fix-small-model-openai

Conversation

@oomathias
Copy link
Contributor

@oomathias oomathias commented Feb 1, 2026

Summary

Fix session title generation with OpenAI models.

Problem

When using OpenAI models (e.g., openai/gpt-5.1-codex-mini) as the small_model config for title generation, the API call fails with:

"Store must be set to false"

The codebase has two paths for provider options:

  1. options() - Used for normal messages, correctly sets store: false
  2. smallOptions() - Used for title generation, was missing store: false

Solution

Added store: false to the return values in smallOptions() for OpenAI models

Similar logic used in:

// openai and providers using openai package should set store to false by default.
if (
input.model.providerID === "openai" ||
input.model.api.npm === "@ai-sdk/openai" ||
input.model.api.npm === "@ai-sdk/github-copilot"
) {
result["store"] = false
}

Fixes

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@oomathias oomathias marked this pull request as ready for review February 1, 2026 22:14
@rekram1-node rekram1-node merged commit bd9d7b3 into anomalyco:dev Feb 2, 2026
8 checks passed
@oomathias oomathias deleted the fix-small-model-openai branch February 2, 2026 05:51
ishaksebsib pushed a commit to ishaksebsib/opencode that referenced this pull request Feb 4, 2026
ishaksebsib pushed a commit to ishaksebsib/opencode that referenced this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ACP sessions have no title Autonaming of sessions does not work AI_APICallError with GPT-5-codex in Zero Data Retention organizations

2 participants