Skip to content
代码片段 群组 项目
未验证 提交 c416b0c4 编辑于 作者: Vitali Tatarintev's avatar Vitali Tatarintev 提交者: GitLab
浏览文件

Merge branch 'id-migrate-fix-code-prompt' into 'master'

No related branches found
No related tags found
无相关合并请求
---
name: prompt_migration_fix_code
feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/475047
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167399
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/496750
milestone: '17.5'
group: group::custom models
type: experiment
default_enabled: false
...@@ -7,6 +7,7 @@ module Tools ...@@ -7,6 +7,7 @@ module Tools
module FixCode module FixCode
class Executor < SlashCommandTool class Executor < SlashCommandTool
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
prepend Concerns::UseAiGatewayAgentPrompt
NAME = 'FixCode' NAME = 'FixCode'
HUMAN_NAME = 'Fix Code' HUMAN_NAME = 'Fix Code'
......
...@@ -133,6 +133,11 @@ ...@@ -133,6 +133,11 @@
expect(answer.error_code).to eq("M4000") expect(answer.error_code).to eq("M4000")
end end
end end
it_behaves_like 'uses ai gateway agent prompt' do
let(:prompt_class) { Gitlab::Llm::Chain::Tools::FixCode::Prompts::Anthropic }
let(:unit_primitive) { 'fix_code' }
end
end end
context 'when context is not authorized' do context 'when context is not authorized' do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册