Update api-openai.yaml
parent
daee70d4be
commit
04414d3364
|
@ -15,12 +15,26 @@ self-contained: true
|
|||
http:
|
||||
- method: POST
|
||||
path:
|
||||
- "https://api.openai.com/v1/engines/davinci-codex/completions"
|
||||
- "https://api.openai.com/v1/chat/completions"
|
||||
body: |
|
||||
{
|
||||
"model": "gpt-3.5-turbo",
|
||||
"messages": [
|
||||
{"role": "system", "content": "You are a helpful assistant designed to output JSON."},
|
||||
{"role": "user", "content": "Who won the world series in 2020?"}
|
||||
]
|
||||
}
|
||||
|
||||
headers:
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
matchers-condition: and
|
||||
matchers:
|
||||
- type: word
|
||||
part: body
|
||||
words:
|
||||
- 'Los Angeles Dodgers'
|
||||
- type: word
|
||||
part: body
|
||||
words:
|
||||
|
|
Loading…
Reference in New Issue