Skip to content
Snippets Groups Projects

Support pipeline job context in Duo Chat API

Merged Eva Kadlecová requested to merge 468461-support-pipeline-context-in-duo-chat-api into master

What does this MR do and why?

This MR adds support to the Chat REST API for evaluating pipeline jobs.

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.

How to set up and validate locally

curl --request POST \
  --header "Authorization: Bearer YOUR_LOCAL_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"content": "what is this build about", "resource_id": 335, "resource_type": "build"}' \
  --url "http://localhost:3000/api/v4/chat/completions"

You should get a response different than:

{"error":"resource_type does not have a valid value"}

It still can result in error since the functionality is not implemented yet.

Related to #468461 (closed)

Edited by Eva Kadlecová

Merge request reports

Merge train pipeline #1481472818 passed

Merge train pipeline passed for 3c7f1ecb

Merged by Lucas CharlesLucas Charles 5 months ago (Oct 4, 2024 8:08am UTC)

Loading

Pipeline #1481474675 failed

Pipeline failed for 6f58bf75 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading