-
Notifications
You must be signed in to change notification settings - Fork 3
/
enum_chat_completions_test.go
33 lines (23 loc) · 1.39 KB
/
enum_chat_completions_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package moonshot_test
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/northes/go-moonshot"
)
func TestEnumChatCompletions(t *testing.T) {
tt := require.New(t)
tt.EqualValues(moonshot.RoleSystem, moonshot.RoleSystem.String())
tt.EqualValues(moonshot.RoleUser, moonshot.RoleUser.String())
tt.EqualValues(moonshot.RoleAssistant, moonshot.RoleAssistant.String())
tt.EqualValues(moonshot.RoleTool, moonshot.RoleTool.String())
tt.EqualValues(moonshot.ModelMoonshotV18K, moonshot.ModelMoonshotV18K.String())
tt.EqualValues(moonshot.ModelMoonshotV132K, moonshot.ModelMoonshotV132K.String())
tt.EqualValues(moonshot.ModelMoonshotV1128K, moonshot.ModelMoonshotV1128K.String())
tt.EqualValues(moonshot.ModelMoonshotV1Auto, moonshot.ModelMoonshotV1Auto.String())
tt.EqualValues(moonshot.FinishReasonStop, moonshot.FinishReasonStop.String())
tt.EqualValues(moonshot.FinishReasonLength, moonshot.FinishReasonLength.String())
tt.EqualValues(moonshot.ChatCompletionsToolTypeFunction, moonshot.ChatCompletionsToolTypeFunction.String())
tt.EqualValues(moonshot.ChatCompletionsParametersTypeObject, moonshot.ChatCompletionsParametersTypeObject.String())
tt.EqualValues(moonshot.ChatCompletionsResponseFormatJSONObject, moonshot.ChatCompletionsResponseFormatJSONObject.String())
tt.EqualValues(moonshot.ChatCompletionsResponseFormatText, moonshot.ChatCompletionsResponseFormatText.String())
}