[GH-ISSUE #1196] Model only working from cli but not API #608

Closed
opened 2026-04-12 10:19:08 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @skadefro on GitHub (Nov 19, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1196

I downloaded TheBloke/deepseek-coder-6.7B-instruct-GGUF
I create a Modelfile and add

FROM ./deepseek-coder-6.7b-instruct.Q6_K.gguf

and run

ollama create skadefro/deepseek -f Modelfile
ollama run skadefro/deepseek

No issues.
I then try and run it from code ( using litellm )

try {
  const stream = await completion({
    model: 'skadefro/deepseek',
    baseUrl: "http://10.0.0.100:11434",
    messages: [{ role: "user", content: "Who is president in USA?"}],
    stream: true
  });
  for await (const part of stream) {
    process.stdout.write(part.choices[0]?.delta?.content || "");
  }
  console.log("")
} catch (error) {
  console.error(error);
}

and now I get

Error: Model: skadefro/deepseek not supported. Cannot find a handler.

What am I missing here ?

By the way, there is an issue adding RSA SSH keys on https://ollama.ai/settings/keys
it just keeps failing with ( also tried with a fresh one created with ssh-keygen -t rsa )

error processing ssh ed25519 key
Originally created by @skadefro on GitHub (Nov 19, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1196 I downloaded TheBloke/deepseek-coder-6.7B-instruct-GGUF I create a Modelfile and add ``` FROM ./deepseek-coder-6.7b-instruct.Q6_K.gguf ``` and run ``` ollama create skadefro/deepseek -f Modelfile ollama run skadefro/deepseek ``` No issues. I then try and run it from code ( using [litellm](https://github.com/zya/litellmjs) ) ``` try { const stream = await completion({ model: 'skadefro/deepseek', baseUrl: "http://10.0.0.100:11434", messages: [{ role: "user", content: "Who is president in USA?"}], stream: true }); for await (const part of stream) { process.stdout.write(part.choices[0]?.delta?.content || ""); } console.log("") } catch (error) { console.error(error); } ``` and now I get ``` Error: Model: skadefro/deepseek not supported. Cannot find a handler. ``` What am I missing here ? By the way, there is an issue adding RSA SSH keys on https://ollama.ai/settings/keys it just keeps failing with ( also tried with a fresh one created with `ssh-keygen -t rsa` ) ``` error processing ssh ed25519 key ```
Author
Owner

@skadefro commented on GitHub (Nov 19, 2023):

This is NOT an ollama issue. Works just fine, if I use ollama-node

<!-- gh-comment-id:1817819678 --> @skadefro commented on GitHub (Nov 19, 2023): This is **NOT** an ollama issue. Works just fine, if I use [ollama-node](https://github.com/technovangelist/ollama-node/)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#608