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

Convert roles in Messages to seperate class #10

Closed
chiouyazo opened this issue Dec 30, 2023 · 1 comment
Closed

Convert roles in Messages to seperate class #10

chiouyazo opened this issue Dec 30, 2023 · 1 comment

Comments

@chiouyazo
Copy link

chiouyazo commented Dec 30, 2023

See the ChatRole class in the Azure OpenAi package

There its basically an Enum which you can put in, and then internally when its evaluated, its just being converted back to a string.

This makes the usage on the dev side much easier, since you dont have to google which ones are available first...

See here: https://github.com/jmorganca/ollama/blob/main/docs/api.md#generate-a-chat-completion
For the available roles...

@chiouyazo
Copy link
Author

Resolved at #14

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

No branches or pull requests

1 participant