From 3d08a7240906ba875e618b5800e1446b6326b549 Mon Sep 17 00:00:00 2001 From: GUO YANKE Date: Wed, 26 Jun 2024 11:15:47 +0800 Subject: [PATCH] feat: add constants for roles --- chat_completion.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chat_completion.go b/chat_completion.go index 518bf43..5523989 100644 --- a/chat_completion.go +++ b/chat_completion.go @@ -12,6 +12,11 @@ import ( ) const ( + RoleSystem = "system" + RoleUser = "user" + RoleAssistant = "assistant" + RoleTool = "tool" + ToolChoiceAuto = "auto" FinishReasonStop = "stop"