Update api-openai.yaml
parent
daee70d4be
commit
04414d3364
|
@ -15,12 +15,26 @@ self-contained: true
|
||||||
http:
|
http:
|
||||||
- method: POST
|
- method: POST
|
||||||
path:
|
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:
|
headers:
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
Authorization: Bearer {{token}}
|
Authorization: Bearer {{token}}
|
||||||
|
|
||||||
|
matchers-condition: and
|
||||||
matchers:
|
matchers:
|
||||||
|
- type: word
|
||||||
|
part: body
|
||||||
|
words:
|
||||||
|
- 'Los Angeles Dodgers'
|
||||||
- type: word
|
- type: word
|
||||||
part: body
|
part: body
|
||||||
words:
|
words:
|
||||||
|
|
Loading…
Reference in New Issue