From cee9e774474f737197ae5f098f7e162e976c4087 Mon Sep 17 00:00:00 2001 From: sanjay920 Date: Tue, 17 Dec 2024 15:46:22 -0800 Subject: [PATCH] update 'system' to 'developer' as per openai's update: https://platform.openai.com/docs/guides/text-generation --- chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.go b/chat.go index 9da31a7..811d689 100644 --- a/chat.go +++ b/chat.go @@ -9,7 +9,7 @@ import ( // Chat message role defined by the OpenAI API. const ( - ChatMessageRoleSystem = "system" + ChatMessageRoleSystem = "developer" ChatMessageRoleUser = "user" ChatMessageRoleAssistant = "assistant" ChatMessageRoleFunction = "function"