Skip to content

Commit acad513

Browse files
test: use o1 in examples (#190)
1 parent 5b46924 commit acad513

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

betaassistant_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestBetaAssistantNewWithOptionalParams(t *testing.T) {
2626
option.WithAPIKey("My API Key"),
2727
)
2828
_, err := client.Beta.Assistants.New(context.TODO(), openai.BetaAssistantNewParams{
29-
Model: openai.F(openai.ChatModelGPT4o),
29+
Model: openai.F(openai.ChatModelO1),
3030
Description: openai.F("description"),
3131
Instructions: openai.F("instructions"),
3232
Metadata: openai.F[any](map[string]interface{}{}),

betathread_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func TestBetaThreadNewAndRunWithOptionalParams(t *testing.T) {
161161
MaxCompletionTokens: openai.F(int64(256)),
162162
MaxPromptTokens: openai.F(int64(256)),
163163
Metadata: openai.F[any](map[string]interface{}{}),
164-
Model: openai.F(openai.ChatModelGPT4o),
164+
Model: openai.F(openai.ChatModelO1),
165165
ParallelToolCalls: openai.F(true),
166166
Temperature: openai.F(1.000000),
167167
Thread: openai.F(openai.BetaThreadNewAndRunParamsThread{

betathreadrun_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestBetaThreadRunNewWithOptionalParams(t *testing.T) {
4747
MaxCompletionTokens: openai.F(int64(256)),
4848
MaxPromptTokens: openai.F(int64(256)),
4949
Metadata: openai.F[any](map[string]interface{}{}),
50-
Model: openai.F(openai.ChatModelGPT4o),
50+
Model: openai.F(openai.ChatModelO1),
5151
ParallelToolCalls: openai.F(true),
5252
Temperature: openai.F(1.000000),
5353
ToolChoice: openai.F[openai.AssistantToolChoiceOptionUnionParam](openai.AssistantToolChoiceOptionAuto(openai.AssistantToolChoiceOptionAutoNone)),

0 commit comments

Comments
 (0)