Skip to content

gpt-5.2-codex TypeError: sdk.responses is not a function. (In 'sdk.responses(modelID)', 'sdk.responses' is undefined) #8622

Closed

Description

@dztabel-happy

Description

使用gpt-5.2-codex(oauth)会出现如下错误:TypeError: sdk.responses is not a function. (In 'sdk.responses(modelID)', 'sdk.responses' is undefined) opencode已更新到最新版

Plugins

oh-my-opencode", "[email protected]", "opencode-openai-codex-auth", "opencode-antigravity-auth"

OpenCode version

1.1.21

Steps to reproduce

使用 "opencode-openai-codex-auth",登录 gpt plus 账号,打开 opencode ,选择模型 gpt-5.2-codex(oauth),即可出现如上问题

Screenshot and/or share link

https://opncd.ai/share/RoddTtt2

Operating System

macOS 26.2

Terminal

warp

Activity

  1. github-actions commented on Jan 15, 2026

    @github-actions
    Contributor

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

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

  2. MUTED64 commented on Jan 20, 2026

    @MUTED64

    可能是你的provider中的openai部分配置为"npm": "@ai-sdk/openai-compatible"而不是"npm": "@ai-sdk/openai"导致的,我改成"npm": "@ai-sdk/openai"后修复了此问题

  3. dztabel-happy commented on Jan 20, 2026

    @dztabel-happy
    Author

    可能是你的provider中的openai部分配置为"npm": "@ai-sdk/openai-compatible"而不是"npm": "@ai-sdk/openai"导致的,我改成"npm": "@ai-sdk/openai"后修复了此问题

    thanks

  4. weaming commented on Jan 23, 2026

    @weaming

    可能是你的provider中的openai部分配置为"npm": "@ai-sdk/openai-compatible"而不是"npm": "@ai-sdk/openai"导致的,我改成"npm": "@ai-sdk/openai"后修复了此问题

    我这样改说格式不正确

  5. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 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

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions