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

Support o1-mini/o1-preview openAI models on Azure #1294

Closed
Akira0g opened this issue Oct 17, 2024 · 1 comment
Closed

Support o1-mini/o1-preview openAI models on Azure #1294

Akira0g opened this issue Oct 17, 2024 · 1 comment
Labels
bug 🐛 Something is working fixed

Comments

@Akira0g
Copy link

Akira0g commented Oct 17, 2024

Getting the following error

2024-10-17 01:53:56.311 | WARNING  | pr_agent.algo.ai_handlers.litellm_ai_handler:chat_completion:234 - Error during LLM inference: litellm.BadRequestError: AzureException BadRequestError - Unsupported value: 'messages[0].role' does not support 'system' with this model.

I think Azure model prefix is azure/o1- in this code
https://github.com/Codium-ai/pr-agent/blob/e82afdd2cb871cc6c6fdaf644662f8fe04d56ca2/pr_agent/algo/ai_handlers/litellm_ai_handler.py#L190

@mrT23
Copy link
Collaborator

mrT23 commented Oct 19, 2024

should be fixed in #1295

@mrT23 mrT23 closed this as completed Oct 19, 2024
@mrT23 mrT23 added bug 🐛 Something is working fixed labels Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something is working fixed
Projects
None yet
Development

No branches or pull requests

2 participants