Update api-openai.yaml

patch-1
geeknik 2023-12-17 19:18:08 +00:00 committed by GitHub
parent daee70d4be
commit 04414d3364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -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: