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

Add Tool Role to MessageRole Type #76

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

SergioKingOne
Copy link
Contributor

Add Support for tool Role in MessageRole

Context:

Ollama supports 4 message roles:

  • system
  • user
  • assistant
  • tool

Currently, only the first three (system, user, assistant) are available in the MessageRole type.

Changes:

  • Add the tool role to the MessageRole type to fully support all roles available in Ollama.

This will allow the tool role to be used when sending messages.

@pepperoni21
Copy link
Owner

Closes #74

@pepperoni21 pepperoni21 merged commit 1933c2d into pepperoni21:master Sep 21, 2024
2 checks passed
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