Why the new OpenAI model o1-preview doesn’t support system role?

Apparently, the new model OpenAI o1-preview doesn’t support system role:

import os
from openai import OpenAI

client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])

messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Hello, how are you?"}
]

response = client.chat.completions.create(
    model='o1-preview',
    messages=messages,
    temperature=0.0,
    max_tokens=500,
    stream=False
)

response_message = response.choices[0].message.content
print(response_message)

out:

BadRequestError: Error code: 400 - {'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'}}

Moreover, the temperature and max_tokens parameters don’t support either!

1

Currently o1 is still a beta version and has some limitations. Here is the official description https://platform.openai.com/docs/guides/reasoning/beta-limitations


During the beta phase, many chat completion API parameters are not yet available. Most notably:

  • Modalities: text only, images are not supported.
  • Message types: user and assistant messages only, system messages are not supported.
  • Streaming: not supported.
  • Tools: tools, function calling, and response format parameters are not supported.
  • Logprobs: not supported.
  • Other: temperature, top_p and n are fixed at 1, while presence_penalty and frequency_penalty are fixed at 0.
    Assistants and Batch: these models are not supported in the Assistants API or Batch API.

New contributor

Seayouth CU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

There’s been a lot of speculation about how the o1 model family works. As stated in the official OpenAI documentation:

The o1 series of large language models are trained with reinforcement
learning to perform complex reasoning. o1 models think before they
answer, producing a long internal chain of thought before responding
to the user.

Until the release of the o1 model family, the system message was the way how to set the behavior of the model. But OpenAI says the  o1 model family thinks and produces a long internal chain of thought before they answer.

This gives me a suspicion that the o1 model family uses the system message internally to kind of test different approaches on how to give the best answer. OpenAI is extremely secretive about the o1 model family, so this is just my speculation. It could be that the system message will be supported by the o1 model family in the near future, but then again, I can hardly imagine a model being that creative when searching for the answer if we set the behavior through the system message.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật