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

feat: Added suffix in completion request #68

Merged
merged 2 commits into from
Sep 7, 2024

Conversation

SpeedCrash100
Copy link
Contributor

New ollama haves API for code completions by introducing field suffix: https://github.com/ollama/ollama/blob/608e87bf8707e377f1c195ae22330e26f67de91e/docs/api.md?plain=1#L43

This PR adds this field to request and also methods to init suffix. I've added small test as well to check everything is working with granite-code:3b model.

@pepperoni21
Copy link
Owner

Thanks for your contribution!

@pepperoni21 pepperoni21 merged commit d66f5f4 into pepperoni21:master Sep 7, 2024
2 checks passed
@SpeedCrash100 SpeedCrash100 deleted the suffix-api branch September 7, 2024 17:18
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.

2 participants