Skip to content

Commit

Permalink
Fix typo assitantInstructions (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrbsg committed Feb 6, 2024
1 parent bb6ed54 commit 69e3fcb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions assistant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestAssistant(t *testing.T) {
assistantID := "asst_abc123"
assistantName := "Ambrogio"
assistantDescription := "Ambrogio is a friendly assistant."
assitantInstructions := `You are a personal math tutor.
assistantInstructions := `You are a personal math tutor.
When asked a question, write and run Python code to answer the question.`
assistantFileID := "file-wB6RM6wHdA49HfS2DJ9fEyrH"
limit := 20
Expand Down Expand Up @@ -92,7 +92,7 @@ When asked a question, write and run Python code to answer the question.`
Name: &assistantName,
Model: openai.GPT4TurboPreview,
Description: &assistantDescription,
Instructions: &assitantInstructions,
Instructions: &assistantInstructions,
})
fmt.Fprintln(w, string(resBytes))
case http.MethodPost:
Expand Down Expand Up @@ -152,7 +152,7 @@ When asked a question, write and run Python code to answer the question.`
Name: &assistantName,
Model: openai.GPT4TurboPreview,
Description: &assistantDescription,
Instructions: &assitantInstructions,
Instructions: &assistantInstructions,
},
},
})
Expand All @@ -167,7 +167,7 @@ When asked a question, write and run Python code to answer the question.`
Name: &assistantName,
Description: &assistantDescription,
Model: openai.GPT4TurboPreview,
Instructions: &assitantInstructions,
Instructions: &assistantInstructions,
})
checks.NoError(t, err, "CreateAssistant error")

Expand All @@ -178,7 +178,7 @@ When asked a question, write and run Python code to answer the question.`
Name: &assistantName,
Description: &assistantDescription,
Model: openai.GPT4TurboPreview,
Instructions: &assitantInstructions,
Instructions: &assistantInstructions,
})
checks.NoError(t, err, "ModifyAssistant error")

Expand Down

0 comments on commit 69e3fcb

Please sign in to comment.