[GH-ISSUE #7106] Update /api/show endpoint to return a boolean describing if the model supports FIM #30273

Closed
opened 2026-04-22 09:48:17 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @tomasz-stefaniak on GitHub (Oct 6, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7106

Hi,

We support Ollama as a model provider in Continue.dev and have recently added FIM (Fill-in-the-Middle) support. Currently, there is no API we are aware of that can be used to determine if a model supports FIM, so we guess its capabilities by checking for a ".Suffix" variable in the template returned from Ollama's /api/show endpoint.

To improve accuracy and stability, we would appreciate receiving this information directly as a boolean value from the /api/show endpoint. This would allow us to integrate FIM support more reliably and provide better service to Continue users.

Context: GitHub Link

Originally created by @tomasz-stefaniak on GitHub (Oct 6, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7106 Hi, We support Ollama as a [model provider in Continue.dev](https://docs.continue.dev/customize/model-providers/ollama) and have recently added FIM (Fill-in-the-Middle) support. Currently, there is no API we are aware of that can be used to determine if a model supports FIM, so we guess its capabilities by checking for a ".Suffix" variable in the template returned from Ollama's `/api/show` endpoint. To improve accuracy and stability, we would appreciate receiving this information directly as a boolean value from the `/api/show` endpoint. This would allow us to integrate FIM support more reliably and provide better service to Continue users. Context: [GitHub Link](https://github.com/continuedev/continue/pull/2452/files#diff-3f4bdaca0060eb741057719bcc865486ab770e4ea1659b317f77235adc887c37R81)
GiteaMirror added the feature request label 2026-04-22 09:48:17 -05:00
Author
Owner

@rick-github commented on GitHub (Oct 6, 2024):

https://github.com/ollama/ollama/issues/5794

<!-- gh-comment-id:2395479842 --> @rick-github commented on GitHub (Oct 6, 2024): https://github.com/ollama/ollama/issues/5794
Author
Owner

@rick-github commented on GitHub (Nov 17, 2024):

closing as dupe

<!-- gh-comment-id:2481303478 --> @rick-github commented on GitHub (Nov 17, 2024): closing as dupe
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30273