Skip to content
Snippets Groups Projects

Add additional context to Duo Chat REST API

Merged Missy Davies requested to merge md-additional-context-duo-rest-api into master
All threads resolved!

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

Screenshot_2024-08-13_at_5.18.24_PM

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Vitali Tatarintev
  • Allen Cook added 1 commit

    added 1 commit

    • 4a10a7da - Add test for current file case

    Compare with previous version

  • Vitali Tatarintev approved this merge request

    approved this merge request

  • 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: :white_check_mark: test report for ba2da034

    expand 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: :white_check_mark: test report for 4a10a7da

    expand test summary
    +-------------------------------------------------------------+
    |                       suites summary                        |
    +--------+--------+--------+---------+-------+-------+--------+
    |        | passed | failed | skipped | flaky | total | result |
    +--------+--------+--------+---------+-------+-------+--------+
    | Create | 417    | 0      | 51      | 0     | 468   | ✅     |
    +--------+--------+--------+---------+-------+-------+--------+
    | Total  | 417    | 0      | 51      | 0     | 468   | ✅     |
    +--------+--------+--------+---------+-------+-------+--------+
  • Allen Cook removed review request for @ck3g

    removed review request for @ck3g

  • Allen Cook requested review from @jprovaznik

    requested review from @jprovaznik

  • Jan Provaznik
  • Allen Cook added 1 commit

    added 1 commit

    Compare with previous version

  • Allen Cook reset approvals from @ck3g by pushing to the branch

    reset approvals from @ck3g by pushing to the branch

  • Jan Provaznik approved this merge request

    approved this merge request

  • Jan Provaznik resolved all threads

    resolved all threads

  • Jan Provaznik
  • Jan Provaznik resolved all threads

    resolved all threads

  • mentioned in issue #481524 (closed)

  • Thanks @acook.gitlab, LGTM :thumbsup:, MWPS set :rocket:. 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)

  • Jan Provaznik enabled automatic add to merge train when checks pass

    enabled automatic add to merge train when checks pass

  • Jan Provaznik mentioned in commit 2fd74440

    mentioned in commit 2fd74440

  • added workflowcomplete label and removed workflowin dev label

  • mentioned in issue #478528 (closed)

  • mentioned in issue #481548 (closed)

  • added workflowstaging label and removed workflowcanary label

  • Missy Davies mentioned in merge request !164944 (merged)

    mentioned in merge request !164944 (merged)

  • Allen Cook mentioned in merge request !169007 (merged)

    mentioned in merge request !169007 (merged)

  • Please register or sign in to reply
    Loading