Skip to content

Support for thought_signature in openai-compatible provider #8321

Closed as not planned

Description

@agamble-quora

Description

Support was added to @ai-sdk/openai-compatible for retaining and passing thought signatures from extra_content in tool calls:

The version of this package that opencode is using is quite old. I tried upgrading the package and there are other errors.

Can this package be upgraded so that support for tools with thinking models will be supported?

Plugins

No response

OpenCode version

v1.1.19 (git / dev)

Steps to reproduce

Upgrade @ai-sdk/openai-compatible to 2.0.7 or later

Try tool calling with Gemini 3 Pro model using Poe as the provider.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    bug
    on Jan 14, 2026
  2. github-actions commented on Jan 14, 2026

    @github-actions
    Contributor

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

    The core issue appears to be that upgrading @ai-sdk/openai-compatible is needed to properly support Gemini 3 models with thought_signature preservation and other recent API requirements.

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

  3. TaterDoge commented on Jan 16, 2026

    @TaterDoge

    The same problem: thought_signature

  4. edenreich commented on Jan 22, 2026

    @edenreich

    lol, why did they have to add thought_signature?

    It's not an OpenAI compatible spec, I've looked on the official OpenAI specification it's not even there!

    The issue is Googles "compatible" API

  5. renich commented on Feb 10, 2026

    @renich

    I get this too often while using antigravity's gemini 3 pro models.

  6. requesty-JohnCosta27 commented on Mar 16, 2026

    @requesty-JohnCosta27

    I'm also facing this issue. The latest openai-compatible package supports this. I'm wondering if Opencode could update the current package version.

  7. edenreich commented on Mar 17, 2026

    @edenreich

    @requesty-JohnCosta27

    I'm also facing this issue. The latest openai-compatible package supports this. I'm wondering if Opencode could update the current package version.

    Hey, quick question, I'm curious if you can reference a link to where did you find it compatible, I was looking here:

    https://github.com/openai/openai-openapi

    Or more specifically here:

    https://github.com/openai/openai-openapi/blob/manual_spec/openapi.yaml

    I couldn't find any indication of thought_signature attribute in the spec and so I'm curious where do you look it up? thanks!
    I'm having the same issue with Gemini Models in the Inference Gateway CLI, the API is basically broken since this attribute was added, I think they could at least make it optional until it's in the spec.

  8. requesty-JohnCosta27 commented on Mar 17, 2026

    @requesty-JohnCosta27

    @requesty-JohnCosta27

    I'm also facing this issue. The latest openai-compatible package supports this. I'm wondering if Opencode could update the current package version.

    Hey, quick question, I'm curious if you can reference a link to where did you find it compatible, I was looking here:

    https://github.com/openai/openai-openapi

    Or more specifically here:

    https://github.com/openai/openai-openapi/blob/manual_spec/openapi.yaml

    I couldn't find any indication of thought_signature attribute in the spec and so I'm curious where do you look it up? thanks! I'm having the same issue with Gemini Models in the Inference Gateway CLI, the API is basically broken since this attribute was added, I think they could at least make it optional until it's in the spec.

    I don't think it is on the OpenAPI, it's very ad hoc.

    But it is on the openai-compatible AI SDK package:

    Receiving the thought_signature

    How openai-compatible adapts and forwards the thought_signature

  9. edenreich commented on Mar 17, 2026

    @edenreich

    @requesty-JohnCosta27

    I'm also facing this issue. The latest openai-compatible package supports this. I'm wondering if Opencode could update the current package version.

    Hey, quick question, I'm curious if you can reference a link to where did you find it compatible, I was looking here:

    https://github.com/openai/openai-openapi

    Or more specifically here:

    https://github.com/openai/openai-openapi/blob/manual_spec/openapi.yaml

    I couldn't find any indication of thought_signature attribute in the spec and so I'm curious where do you look it up? thanks! I'm having the same issue with Gemini Models in the Inference Gateway CLI, the API is basically broken since this attribute was added, I think they could at least make it optional until it's in the spec.

    I don't think it is on the OpenAPI, it's very ad hoc.

    But it is on the openai-compatible AI SDK package:

    Receiving the thought_signature

    How openai-compatible adapts and forwards the thought_signature

    Interesting, got it, I might need to implement it the same way.

  10. removed
    bug
    on May 3, 2026
  11. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions