Fix typo assitantInstructions (#655)
This commit is contained in:
@@ -17,7 +17,7 @@ func TestAssistant(t *testing.T) {
|
|||||||
assistantID := "asst_abc123"
|
assistantID := "asst_abc123"
|
||||||
assistantName := "Ambrogio"
|
assistantName := "Ambrogio"
|
||||||
assistantDescription := "Ambrogio is a friendly assistant."
|
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.`
|
When asked a question, write and run Python code to answer the question.`
|
||||||
assistantFileID := "file-wB6RM6wHdA49HfS2DJ9fEyrH"
|
assistantFileID := "file-wB6RM6wHdA49HfS2DJ9fEyrH"
|
||||||
limit := 20
|
limit := 20
|
||||||
@@ -92,7 +92,7 @@ When asked a question, write and run Python code to answer the question.`
|
|||||||
Name: &assistantName,
|
Name: &assistantName,
|
||||||
Model: openai.GPT4TurboPreview,
|
Model: openai.GPT4TurboPreview,
|
||||||
Description: &assistantDescription,
|
Description: &assistantDescription,
|
||||||
Instructions: &assitantInstructions,
|
Instructions: &assistantInstructions,
|
||||||
})
|
})
|
||||||
fmt.Fprintln(w, string(resBytes))
|
fmt.Fprintln(w, string(resBytes))
|
||||||
case http.MethodPost:
|
case http.MethodPost:
|
||||||
@@ -152,7 +152,7 @@ When asked a question, write and run Python code to answer the question.`
|
|||||||
Name: &assistantName,
|
Name: &assistantName,
|
||||||
Model: openai.GPT4TurboPreview,
|
Model: openai.GPT4TurboPreview,
|
||||||
Description: &assistantDescription,
|
Description: &assistantDescription,
|
||||||
Instructions: &assitantInstructions,
|
Instructions: &assistantInstructions,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -167,7 +167,7 @@ When asked a question, write and run Python code to answer the question.`
|
|||||||
Name: &assistantName,
|
Name: &assistantName,
|
||||||
Description: &assistantDescription,
|
Description: &assistantDescription,
|
||||||
Model: openai.GPT4TurboPreview,
|
Model: openai.GPT4TurboPreview,
|
||||||
Instructions: &assitantInstructions,
|
Instructions: &assistantInstructions,
|
||||||
})
|
})
|
||||||
checks.NoError(t, err, "CreateAssistant error")
|
checks.NoError(t, err, "CreateAssistant error")
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ When asked a question, write and run Python code to answer the question.`
|
|||||||
Name: &assistantName,
|
Name: &assistantName,
|
||||||
Description: &assistantDescription,
|
Description: &assistantDescription,
|
||||||
Model: openai.GPT4TurboPreview,
|
Model: openai.GPT4TurboPreview,
|
||||||
Instructions: &assitantInstructions,
|
Instructions: &assistantInstructions,
|
||||||
})
|
})
|
||||||
checks.NoError(t, err, "ModifyAssistant error")
|
checks.NoError(t, err, "ModifyAssistant error")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user