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's o1-mini model does not support "system_prompt" argument #245

Closed
bzzzwa opened this issue Jan 8, 2025 · 1 comment
Closed

OpenAI's o1-mini model does not support "system_prompt" argument #245

bzzzwa opened this issue Jan 8, 2025 · 1 comment

Comments

@bzzzwa
Copy link

bzzzwa commented Jan 8, 2025

When using OpenAI's o1-mini model like

chat <- chat_openai(
         model = "o1-mini",
         system_prompt = "You are a friendly but terse assistant.",
       )
       chat$chat("Tell me three funny jokes about statistcians"))

the response is

Error in `httr2::req_perform_connection()`:
! HTTP 400 Bad Request.
• Unsupported value: 'messages[0].role' does not support 'system' with this model.

When the "system_prompt" argument is omitted, it works.

@hadley
Copy link
Member

hadley commented Jan 10, 2025

I'm not sure what you want here: If the model doesn't support a system prompt, then just don't set it? What am I missing?

@hadley hadley closed this as completed Jan 13, 2025
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

2 participants