[GH-ISSUE #13997] ollama launch claude code with kimi k2.5 error #9149

Closed
opened 2026-04-12 22:00:04 -05:00 by GiteaMirror · 15 comments
Owner

Originally created by @scorpion7slayer on GitHub (Jan 31, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/13997

Originally assigned to: @ParthSareen on GitHub.

What is the issue?

hello when i want to use kimi k2.5 with claude code i get this error

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Error validating JSON Schema:
<SchemaError: "None is not of type 'object'">"},"request_id":"req_25890787a01afeed062d25e7"}

Relevant log output


OS

Windows

GPU

Intel

CPU

Intel

Ollama version

0.15.2

Originally created by @scorpion7slayer on GitHub (Jan 31, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/13997 Originally assigned to: @ParthSareen on GitHub. ### What is the issue? hello when i want to use kimi k2.5 with claude code i get this error API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Error validating JSON Schema: <SchemaError: \"None is not of type 'object'\">"},"request_id":"req_25890787a01afeed062d25e7"} ### Relevant log output ```shell ``` ### OS Windows ### GPU Intel ### CPU Intel ### Ollama version 0.15.2
GiteaMirror added the bug label 2026-04-12 22:00:04 -05:00
Author
Owner

@rick-github commented on GitHub (Jan 31, 2026):

More information is required. Did you configure Claude Code, are using local ollama as a proxy or direct, is your local ollama instance running and configured with the model, do you have a cloud subscription, what prompt triggered the error, what do the ollama server logs show?

$ export ANTHROPIC_BASE_URL=http://localhost:11434
$ export ANTHROPIC_AUTH_TOKEN=ollama
$ ollama launch claude --model kimi-k2.5:cloud
╭─── Claude Code v2.1.27 ──────────────────────────────────────────────────────╮
│                                         │ Tips for getting started           │
│              Welcome back!              │ Run /init to create a CLAUDE.md f… │
│                                         │ Note: You have launched claude in… │
│                                         │ ────────────────────────────────── │
│                 ▐▛███▜▌                 │ Recent activity                    │
│                ▝▜█████▛▘                │ No recent activity                 │
│                  ▘▘ ▝▝                  │                                    │
│   kimi-k2.5:cloud · API Usage Billing   │                                    │
│               /home/rick                │                                    │
╰──────────────────────────────────────────────────────────────────────────────╯
                                                                                
  /model to try Opus 4.5                                                        
                                                                                
❯ what model are you?                                                           
                                                                                
● I'm Claude Code, powered by Claude Opus 4.5 (model ID: kimi-k2.5:cloud).      
                                                                                
────────────────────────────────────────────────────────────────────────────────
❯                                                                               
────────────────────────────────────────────────────────────────────────────────
  ? for shortcuts                   
<!-- gh-comment-id:3828987622 --> @rick-github commented on GitHub (Jan 31, 2026): More information is required. Did you configure Claude Code, are using local ollama as a proxy or direct, is your local ollama instance running and configured with the model, do you have a cloud subscription, what prompt triggered the error, what do the ollama [server logs](https://docs.ollama.com/troubleshooting) show? ```console $ export ANTHROPIC_BASE_URL=http://localhost:11434 $ export ANTHROPIC_AUTH_TOKEN=ollama $ ollama launch claude --model kimi-k2.5:cloud ╭─── Claude Code v2.1.27 ──────────────────────────────────────────────────────╮ │ │ Tips for getting started │ │ Welcome back! │ Run /init to create a CLAUDE.md f… │ │ │ Note: You have launched claude in… │ │ │ ────────────────────────────────── │ │ ▐▛███▜▌ │ Recent activity │ │ ▝▜█████▛▘ │ No recent activity │ │ ▘▘ ▝▝ │ │ │ kimi-k2.5:cloud · API Usage Billing │ │ │ /home/rick │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ /model to try Opus 4.5 ❯ what model are you? ● I'm Claude Code, powered by Claude Opus 4.5 (model ID: kimi-k2.5:cloud). ──────────────────────────────────────────────────────────────────────────────── ❯  ──────────────────────────────────────────────────────────────────────────────── ? for shortcuts ```
Author
Owner

@scorpion7slayer commented on GitHub (Jan 31, 2026):

I use ollama locally on the same machine to use my ollama models I used the command "ollama launch claude --config" I do not have a cloud subscription I don't have any errors in the ollama logs because it's only when I run it via Claude code that I get this error

<!-- gh-comment-id:3829031213 --> @scorpion7slayer commented on GitHub (Jan 31, 2026): I use ollama locally on the same machine to use my ollama models I used the command "ollama launch claude --config" I do not have a cloud subscription I don't have any errors in the ollama logs because it's only when I run it via Claude code that I get this error
Author
Owner

@rick-github commented on GitHub (Jan 31, 2026):

What happens if you run

ollama run kimi-k2.5:cloud hello
<!-- gh-comment-id:3829050913 --> @rick-github commented on GitHub (Jan 31, 2026): What happens if you run ``` ollama run kimi-k2.5:cloud hello ```
Author
Owner

@scorpion7slayer commented on GitHub (Jan 31, 2026):

he thinks and answers me

<!-- gh-comment-id:3829069023 --> @scorpion7slayer commented on GitHub (Jan 31, 2026): he thinks and answers me
Author
Owner

@rick-github commented on GitHub (Jan 31, 2026):

Where does the error message come from? In the client or in the logs? What prompt causes the error?

<!-- gh-comment-id:3829072688 --> @rick-github commented on GitHub (Jan 31, 2026): Where does the error message come from? In the client or in the logs? What prompt causes the error?
Author
Owner

@scorpion7slayer commented on GitHub (Jan 31, 2026):

the error comes directly from claude code he displayed it to me and to be sure that it was not claude code which was causing the problem I even tried GLM 4.7 cloud and it worked but with kimi k2.5 no and the prompt was just "code a page into html" to test it and see if it wouldn't have a problem

<!-- gh-comment-id:3829146850 --> @scorpion7slayer commented on GitHub (Jan 31, 2026): the error comes directly from claude code he displayed it to me and to be sure that it was not claude code which was causing the problem I even tried GLM 4.7 cloud and it worked but with kimi k2.5 no and the prompt was just "code a page into html" to test it and see if it wouldn't have a problem
Author
Owner

@rick-github commented on GitHub (Jan 31, 2026):

If it worked with glm-4.7:cloud then it could be a problem with kimi-k2.5:cloud. There are reports in the Discord of issues with some cloud models. The maintainers are aware of this and are working on rectifying them, so you may just have to wait until the cloud issues are resolved.

<!-- gh-comment-id:3829155938 --> @rick-github commented on GitHub (Jan 31, 2026): If it worked with glm-4.7:cloud then it could be a problem with kimi-k2.5:cloud. There are reports in the Discord of [issues](https://discord.com/channels/1128867683291627614/1211804431340019753/threads/1467146419092717661) with some cloud models. The maintainers are aware of this and are working on rectifying them, so you may just have to wait until the cloud issues are resolved.
Author
Owner

@scorpion7slayer commented on GitHub (Jan 31, 2026):

oh ok thank you I will check then and get back to you if it still doesn't work

<!-- gh-comment-id:3829201393 --> @scorpion7slayer commented on GitHub (Jan 31, 2026): oh ok thank you I will check then and get back to you if it still doesn't work
Author
Owner

@lyfuci commented on GitHub (Feb 2, 2026):

I'm using the Windows version of Ollama, and it seems to be giving me a 404 error. is this a similar problem? Or is it not supported by Windows?

API Error: 404 {"type":"error","error":{"type":"not_found_error","message":"model: kimi-k2.5:cloud"},"request_id":"req_011CXikqNyTFs1rzbzkDBhkN"}

<!-- gh-comment-id:3833342210 --> @lyfuci commented on GitHub (Feb 2, 2026): I'm using the Windows version of Ollama, and it seems to be giving me a 404 error. is this a similar problem? Or is it not supported by Windows? API Error: 404 {"type":"error","error":{"type":"not_found_error","message":"model: kimi-k2.5:cloud"},"request_id":"req_011CXikqNyTFs1rzbzkDBhkN"}
Author
Owner

@DanRegalia commented on GitHub (Feb 3, 2026):

dan@BEAST-PC:~$ ollama run kimi-k2.5:cloud
Connecting to 'kimi-k2.5' on 'ollama.com'

how do i get you to run
Error: 401 Unauthorized
dan@BEAST-PC:~$

This is what I get when I try to get it to run... do we have to have some kind of auth? It doesn't make sense

<!-- gh-comment-id:3839065332 --> @DanRegalia commented on GitHub (Feb 3, 2026): dan@BEAST-PC:~$ ollama run kimi-k2.5:cloud Connecting to 'kimi-k2.5' on 'ollama.com' ⚡ >>> how do i get you to run Error: 401 Unauthorized dan@BEAST-PC:~$ This is what I get when I try to get it to run... do we have to have some kind of auth? It doesn't make sense
Author
Owner

@rick-github commented on GitHub (Feb 3, 2026):

@lyfuci ollama pull kimi-k2.5:cloud
@DanRegalia ollama signin

<!-- gh-comment-id:3840615288 --> @rick-github commented on GitHub (Feb 3, 2026): @lyfuci `ollama pull kimi-k2.5:cloud` @DanRegalia `ollama signin`
Author
Owner

@lyfuci commented on GitHub (Feb 4, 2026):

@lyfuci ollama pull kimi-k2.5:cloud @DanRegalia ollama signin

This was a huge help.

<!-- gh-comment-id:3845807276 --> @lyfuci commented on GitHub (Feb 4, 2026): > [@lyfuci](https://github.com/lyfuci) `ollama pull kimi-k2.5:cloud` [@DanRegalia](https://github.com/DanRegalia) `ollama signin` This was a huge help.
Author
Owner

@rick-github commented on GitHub (Feb 8, 2026):

@scorpion7slayer Does the issue persist?

<!-- gh-comment-id:3868439411 --> @rick-github commented on GitHub (Feb 8, 2026): @scorpion7slayer Does the issue persist?
Author
Owner

@JonathanJFlores commented on GitHub (Feb 11, 2026):

Is there a way to fix this temporarily?

<!-- gh-comment-id:3887545679 --> @JonathanJFlores commented on GitHub (Feb 11, 2026): Is there a way to fix this temporarily?
Author
Owner

@ParthSareen commented on GitHub (Feb 27, 2026):

We've done a bunch of tool calling improvements for kimi - if issues are persisting please reopen this issue :)

<!-- gh-comment-id:3971250145 --> @ParthSareen commented on GitHub (Feb 27, 2026): We've done a bunch of tool calling improvements for kimi - if issues are persisting please reopen this issue :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9149