[GH-ISSUE #8320] yi-coder: Suffix not supported #31089

Closed
opened 2026-04-22 11:15:07 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @pyscripter on GitHub (Jan 6, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8320

What is the issue?

The yi-coder documentation provides the following code completion example:

curl http://localhost:11434/api/generate -d '{
  "model": "yi-coder",
  "prompt": "def compute_gcd(a, b):",
  "suffix": "    return result",
  "options": {
    "temperature": 0
  },
  "stream": false
}'

When running the example I get the following response:

{"error":"registry.ollama.ai/library/yi-coder:latest does not support insert"}
I get the same response using yi-coder:9b-base.

OS

Windows

GPU

Nvidia

CPU

Intel

Ollama version

0.5.4

Originally created by @pyscripter on GitHub (Jan 6, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8320 ### What is the issue? The yi-coder [documentation](https://ollama.com/library/yi-coder) provides the following code completion example: ```shell curl http://localhost:11434/api/generate -d '{ "model": "yi-coder", "prompt": "def compute_gcd(a, b):", "suffix": " return result", "options": { "temperature": 0 }, "stream": false }' ``` When running the example I get the following response: `{"error":"registry.ollama.ai/library/yi-coder:latest does not support insert"} ` I get the same response using yi-coder:9b-base. ### OS Windows ### GPU Nvidia ### CPU Intel ### Ollama version 0.5.4
GiteaMirror added the bug label 2026-04-22 11:15:07 -05:00
Author
Owner

@jmorganca commented on GitHub (Jan 6, 2025):

Hi @pyscripter, if I'm not mistaken, the authors mentioned the model was not trained to support suffix, so it wasn't added in this case. Hope this helps!

<!-- gh-comment-id:2573721026 --> @jmorganca commented on GitHub (Jan 6, 2025): Hi @pyscripter, if I'm not mistaken, the authors mentioned the model was not trained to support suffix, so it wasn't added in this case. Hope this helps!
Author
Owner

@pyscripter commented on GitHub (Jan 7, 2025):

Hi @pyscripter, if I'm not mistaken, the authors mentioned the model was not trained to support suffix, so it wasn't added in this case. Hope this helps!

The yi-coder documentation says otherwise. Also the parameters include the <fim_suffix>.

@jmorganca
Please have another look, If the documentation is wrong then it should be fixed.

<!-- gh-comment-id:2574176365 --> @pyscripter commented on GitHub (Jan 7, 2025): > Hi @pyscripter, if I'm not mistaken, the authors mentioned the model was not trained to support suffix, so it wasn't added in this case. Hope this helps! The yi-coder [documentation](https://ollama.com/library/yi-coder) says otherwise. Also the parameters include the <fim_suffix>. @jmorganca Please have another look, If the documentation is wrong then it should be fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#31089