[GH-ISSUE #3869] API for FIM tasks #2397

Closed
opened 2026-04-12 12:42:39 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @boswelja on GitHub (Apr 24, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3869

Some models support fill-in-the-middle, which is very useful for things like code completion. It'd be great if this was exposed as a model-agnostic API, just like api/chat.

I understand that not all models support this, so it might be a good idea to expose whether this is supported in the model info API too.

Originally created by @boswelja on GitHub (Apr 24, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3869 Some models support fill-in-the-middle, which is very useful for things like code completion. It'd be great if this was exposed as a model-agnostic API, just like `api/chat`. I understand that not all models support this, so it might be a good idea to expose whether this is supported in the model info API too.
GiteaMirror added the feature request label 2026-04-12 12:42:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2397