Add additional context to Duo Chat REST API
What does this MR do and why?
Resolves #478528 (closed)
Add additional context to Duo Chat REST API to align with the GraphQL API.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
How to set up and validate locally
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"
}
]
}
Merge request reports
Activity
assigned to @missy-gitlab
changed milestone to %17.4
added pipelinetier-1 label
- A deleted user
added backend featureaddition typefeature labels
1 Warning featureaddition and featureenhancement merge requests normally have a documentation change. Consider adding a documentation update or confirming the documentation plan with the Technical Writer counterpart.
For more information, see:
- The Handbook page on merge request types.
- The definition of done documentation.
Reviewer roulette
Category Reviewer Maintainer backend @adie.po
(UTC+0, 4 hours ahead of author)
@atiwari71
(UTC+5.5, 9.5 hours ahead of author)
Please refer to documentation page for guidance on how you can benefit from the Reviewer Roulette, or use the GitLab Review Workload Dashboard to find other available reviewers.
If needed, you can retry the
danger-review
job that generated this comment.Generated by
Dangeradded groupcode creation label
added Category:Code Suggestions devopscreate sectiondev labels
added task forceAI Context label
added workflowin dev label
added 1873 commits
-
492638f2...7acdfcc5 - 1871 commits from branch
master
- 4379bf69 - Add additional context to Duo Chat REST API
- cf3a1d6b - Fix line too long error
-
492638f2...7acdfcc5 - 1871 commits from branch
assigned to @acook.gitlab
added 1 commit
- 7c8ba1f4 - Add current file and additional context to REST API
requested review from @ck3g
- Resolved by Jan Provaznik
@ck3g could you do the first backend review here?
- Resolved by Jan Provaznik
- Resolved by Jan Provaznik
- Resolved by Jan Provaznik
added pipeline:mr-approved label
added pipelinetier-3 pipeline:run-e2e-omnibus-once labels and removed pipelinetier-1 label
Before you set this MR to auto-merge
This merge request will progress on pipeline tiers until it reaches the last tier: pipelinetier-3. We will trigger a new pipeline for each transition to a higher tier.
Before you set this MR to auto-merge, please check the following:
- You are the last maintainer of this merge request
- The latest pipeline for this merge request is pipelinetier-3 (You can find which tier it is in the pipeline name)
- This pipeline is recent enough (created in the last 8 hours)
If all the criteria above apply, please set auto-merge for this merge request.
See pipeline tiers and merging a merge request for more details.
E2E Test Result Summary
allure-report-publisher
generated test report!e2e-test-on-gdk:
test report for ba2da034expand test summary
+------------------------------------------------------------------+ | suites summary | +-------------+--------+--------+---------+-------+-------+--------+ | | passed | failed | skipped | flaky | total | result | +-------------+--------+--------+---------+-------+-------+--------+ | Package | 20 | 0 | 12 | 0 | 32 | ✅ | | Create | 128 | 0 | 15 | 0 | 143 | ✅ | | Manage | 1 | 0 | 1 | 0 | 2 | ✅ | | Plan | 73 | 0 | 0 | 0 | 73 | ✅ | | Govern | 71 | 0 | 0 | 0 | 71 | ✅ | | Verify | 44 | 0 | 2 | 0 | 46 | ✅ | | Data Stores | 31 | 0 | 1 | 0 | 32 | ✅ | | Monitor | 8 | 0 | 0 | 0 | 8 | ✅ | | Secure | 3 | 0 | 0 | 0 | 3 | ✅ | | Release | 5 | 0 | 0 | 0 | 5 | ✅ | | Analytics | 2 | 0 | 0 | 0 | 2 | ✅ | | Fulfillment | 2 | 0 | 0 | 0 | 2 | ✅ | +-------------+--------+--------+---------+-------+-------+--------+ | Total | 388 | 0 | 31 | 0 | 419 | ✅ | +-------------+--------+--------+---------+-------+-------+--------+
e2e-package-and-test:
test report for 4a10a7daexpand test summary
+-------------------------------------------------------------+ | suites summary | +--------+--------+--------+---------+-------+-------+--------+ | | passed | failed | skipped | flaky | total | result | +--------+--------+--------+---------+-------+-------+--------+ | Create | 417 | 0 | 51 | 0 | 468 | ✅ | +--------+--------+--------+---------+-------+-------+--------+ | Total | 417 | 0 | 51 | 0 | 468 | ✅ | +--------+--------+--------+---------+-------+-------+--------+
removed pipeline:run-e2e-omnibus-once label
removed review request for @ck3g
requested review from @jprovaznik
- Resolved by Jan Provaznik
- Resolved by Jan Provaznik
reset approvals from @ck3g by pushing to the branch
- Resolved by Jan Provaznik
mentioned in issue #481524 (closed)
Thanks @acook.gitlab, LGTM
, MWPS set . I realized a bit late we should also update doc with these new params, but I think we can do this in a follow-up - created #481524 (closed)started a merge train
mentioned in commit 2fd74440
added workflowcomplete label and removed workflowin dev label
mentioned in issue #478528 (closed)
mentioned in issue #481548 (closed)
added workflowstaging-canary label and removed workflowcomplete label
added workflowcanary label and removed workflowstaging-canary label
added workflowstaging label and removed workflowcanary label
added workflowproduction label and removed workflowstaging label
added workflowpost-deploy-db-staging label and removed workflowproduction label
added workflowpost-deploy-db-production label and removed workflowpost-deploy-db-staging label
mentioned in merge request !164944 (merged)
added releasedcandidate label
mentioned in merge request kubitus-project/kubitus-installer!3354 (merged)
mentioned in merge request !169007 (merged)
added releasedpublished label and removed releasedcandidate label