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

OpenAI o1 models don't support "system" role #291

Closed
stephanj opened this issue Sep 13, 2024 · 2 comments
Closed

OpenAI o1 models don't support "system" role #291

stephanj opened this issue Sep 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@stephanj
Copy link
Contributor

An unexpected error occurred: CompletionException - com.devoxx.genie.service.exception.ProviderUnavailableException: dev.ai4j.openai4j.OpenAiHttpException: { "error": { "message": "Unsupported value: 'messages[0].role' does not support 'system' with this model.", "type": "invalid_request_error", "param": "messages[0].role", "code": "unsupported_value" } } Caused by: ProviderUnavailableException - dev.ai4j.openai4j.OpenAiHttpException: { "error": { "message": "Unsupported value: 'messages[0].role' does not support 'system' with this model.", "type": "invalid_request_error", "param": "messages[0].role", "code": "unsupported_value" } } Please check the IDE log for more details.
@stephanj stephanj added the bug Something isn't working label Sep 13, 2024
@stephanj stephanj self-assigned this Sep 13, 2024
@stephanj
Copy link
Contributor Author

Also temperature and topK must be 1

@stephanj
Copy link
Contributor Author

Works 🤩
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant