Skip to content

Draft: Use system prompt for Anthropic requests

This is related to this experiment issue

We want to use a system prompt with Anthropic.

Apparently, the way that you do that is with the text completions API to add text before the first "\n\nHuman:" turn.

It removes the \n\nHuman: from before the prompt.

After:

\n\nYou are a DevSecOps Assistant named 'GitLab Duo Chat' created by GitLab.

Before:

\n\nHuman: You are a DevSecOps Assistant named 'GitLab Duo Chat' created by GitLab.

Edited by Lesley Razzaghian

Merge request reports