Add additional context to Duo Chat REST API
Compare changes
- Allen Cook authored
+ 4
− 3
@@ -9,10 +9,10 @@ class Chat < ::API::Base
@@ -44,9 +44,10 @@ def find_resource(parameters)
Resolves #478528 (closed)
Add additional context to Duo Chat REST API to align with the GraphQL API.
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Use cURL or PostMan to send a request to the Chat endpoint with additional context and verify it returns status 200:
http://gdk.test:3000/api/v4/chat/completions
{
"content": "What is the capital of Bolivia?",
"with_clean_history": true,
"additional_context": [
{
"name": "something 1",
"type": "snippet",
"content": "some content from postman 1"
},
{
"name": "something else 2",
"type": "snippet",
"content": "some more content from postman 2"
}
]
}