Skip to content

AI_APICallError: The requested model is not supported. #2740

Closed

Description

@CG-man

I have a subscription to github copilot pro, but recently my opencode can't use claude related models. Currently, gpt5 and gemini are working.
I tried to login again, but it didn't work.

Image

Activity

  1. rekram1-node commented on Sep 23, 2025

    @rekram1-node
    Contributor

    @CG-man what claude model are you trying?

    Some models require a Pro+ plan

    All other ones require you to explicitly enable in your copilot dashboard: https://github.com/settings/copilot/features

  2. self-assigned this
    on Sep 23, 2025
  3. CG-man commented on Sep 23, 2025

    @CG-man
    Author
    Image Image

    Claude Sonnet 4: not working
    Claude Opus 4: not working
    Claude Opus 4.1: not working
    Claude Sonnet 3.5 & 3.7: not working

    gpt-5 & gemini 2.5 pro: working

    input:

    opencode run hey --print-logs
    

    error logs:

    INFO  2025-09-23T02:16:58 +2ms service=session.prompt session=ses_68ba3e45affelLDviwaXtzpUvE type=error part
    ERROR 2025-09-23T02:16:58 +0ms service=session.prompt session=ses_68ba3e45affelLDviwaXtzpUvE error=The requested model is not supported. process
    INFO  2025-09-23T02:16:58 +1ms service=bus type=session.error publishing
    Error: AI_APICallError: The requested model is not supported.
    INFO  2025-09-23T02:16:58 +1ms service=bus type=message.updated publishing
    INFO  2025-09-23T02:16:58 +0ms service=bus type=message.updated publishing
    INFO  2025-09-23T02:16:58 +0ms service=session.compaction pruning
    INFO  2025-09-23T02:16:58 +0ms service=session.prompt session=ses_68ba3e45affelLDviwaXtzpUvE sessionID=ses_68ba3e45affelLDviwaXtzpUvE unlocking
    
  4. rekram1-node commented on Sep 23, 2025

    @rekram1-node
    Contributor

    @CG-man try opencode auth logout and then back in

  5. rekram1-node commented on Sep 23, 2025

    @rekram1-node
    Contributor

    If you are on pro plan you dont get any opus access

  6. CG-man commented on Sep 23, 2025

    @CG-man
    Author

    However, last week, claude 4 was still working properly in opencode. But yesterday, I suddenly found that I couldn’t access claude’s model.

    I don't know the reason. Could it be that github has done something to me

    Image Image

    In the copilot chat plugin in vscode, the claude’s model is working.

    Image
  7. rekram1-node commented on Sep 23, 2025

    @rekram1-node
    Contributor

    Hmm it could be where you are based maybe? I haven't heard of this happening maybe they block certain models based on region

  8. CG-man commented on Sep 23, 2025

    @CG-man
    Author

    I solved this problem

    export HTTPS_PROXY="http://localhost:7890"
    
    Image
  9. TDshaokunkun commented on Mar 25, 2026

    @TDshaokunkun

    Hello @CG-man
    Thanks a lot! This perfectly solved my problem

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