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: Add support for done reason in ollama_dart #413

Merged
merged 1 commit into from
May 11, 2024
Merged

Conversation

davidmigloz
Copy link
Owner

@davidmigloz davidmigloz commented May 11, 2024

final res = await client.generateChatCompletion(...);
print(res.doneReason);
  • DoneReason.stop - The generation hit a stop token.
  • DoneReason.length - The maximum num_tokens was reached.
  • DoneReason.load - The request was sent with an empty body to load the model.

@davidmigloz davidmigloz self-assigned this May 11, 2024
@davidmigloz davidmigloz added the p:ollama_dart ollama_dart package. label May 11, 2024
@davidmigloz davidmigloz changed the title feat: Add support for done reason feat: Add support for done reason in ollama_dart May 11, 2024
@davidmigloz davidmigloz added the t:enhancement New feature or request label May 11, 2024
@davidmigloz davidmigloz added this to the v0.8.0 milestone May 11, 2024
@davidmigloz davidmigloz merged commit c80c365 into main May 11, 2024
1 check passed
@davidmigloz davidmigloz deleted the done-reason branch May 11, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p:ollama_dart ollama_dart package. t:enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant