Skip to content
Snippets Groups Projects
Commit 694cdbf7 authored by Marcus Johansson's avatar Marcus Johansson
Browse files

Issue #3497577: O1 does not allow system role

parent e2e5845a
No related branches found
No related tags found
1 merge request!14Issue #3497577: O1 does not allow system role
......@@ -270,8 +270,8 @@ class OpenAiProvider extends AiProviderClientBase implements
$chat_input = [];
// Add a system role if wanted.
if ($this->chatSystemRole) {
// If its o1 or anything with o1 in it, we add it as a user message.
if (preg_match('/o1/i', $model_id)) {
// If its o1 or o3 in it, we add it as a user message.
if (preg_match('/(o1|o3)/i', $model_id)) {
$chat_input[] = [
'role' => 'user',
'content' => $this->chatSystemRole,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment