Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FIM on Continue. Have specific formatters for chat and FIM #1015

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

aponcedeleonch
Copy link
Contributor

@aponcedeleonch aponcedeleonch commented Feb 11, 2025

Closes: #1005

Until now we had a general formatter on the way out of muxing. This is wrong since sometimes the pipelines respond with different format for chat or FIM. Such is the case for Ollama.

This PR separates the formatters and declares them explicitly so that they're easier to adjust in the future.

@aponcedeleonch aponcedeleonch self-assigned this Feb 11, 2025
@aponcedeleonch aponcedeleonch marked this pull request as draft February 11, 2025 13:26
@aponcedeleonch
Copy link
Contributor Author

Still testing. Opened a PR to check if I hadn't broken something using CI

jhrozek
jhrozek previously approved these changes Feb 11, 2025
Copy link
Contributor

@jhrozek jhrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is a draft, but I think this patch makes sense and in general I think this is caused by openai python libraries being bumped in litellm. I noticed that the new versions don't support prompt anymore.

Until now we had a general formatter on the way out of muxing.
This is wrong since sometimes the pipelines respond with different
format for chat or FIM. Such is the case for Ollama.

This PR separates the formatters and declares them explicitly so
that they're easier to adjust in the future.
@aponcedeleonch aponcedeleonch marked this pull request as ready for review February 12, 2025 09:50
JAORMX
JAORMX previously approved these changes Feb 12, 2025
Copy link
Contributor

@JAORMX JAORMX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments, feel free to address them in subsequent PRs

@aponcedeleonch aponcedeleonch merged commit 8897318 into main Feb 12, 2025
10 checks passed
@aponcedeleonch aponcedeleonch deleted the format-output-mux-fim branch February 12, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Muxing issues with FIM in Continue
3 participants