blahblah6407
10/12/2023, 8:48 PMian
10/12/2023, 10:44 PMblahblah6407
10/13/2023, 8:29 AMproviders:
- id: openai:gpt-3.5-turbo-0613
config:
temperature: 0.1
functions: [
{
"name": "get_current_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA"
},
"unit": {
"type": "string",
"enum": ["celsius", "fahrenheit"]
}
},
"required": ["location"]
}
}
]
prompts: [prompt.json]
tests:
- description : "Test if json"
vars:
INPUT: Boston
assert:
- type: is-jsonblahblah6407
10/13/2023, 8:31 AM[
{
"role": "user",
"content": "What is the weather like in {{INPUT}}?"
}
]blahblah6407
10/13/2023, 8:32 AMian
10/16/2023, 9:02 PMoptions.postprocess on the test case:
yaml
tests:
- description : "Test if json"
options:
postprocess: JSON.stringify(output)
vars:
INPUT: Boston
assert:
- type: is-jsonian
10/16/2023, 9:03 PMblahblah6407
10/17/2023, 6:31 PM