Skip to content
代码片段 群组 项目
提交 bf6107b5 编辑于 作者: Mark Chao's avatar Mark Chao
浏览文件

Temporarily disable categorize_question

上级 ea249447
No related branches found
No related tags found
无相关合并请求
...@@ -74,7 +74,7 @@ def execute ...@@ -74,7 +74,7 @@ def execute
end end
response_handler.execute(response: response_modifier) response_handler.execute(response: response_modifier)
response_post_processing # response_post_processing # Temp fix for production issue
response_modifier response_modifier
end end
traceable :execute, name: 'Run Duo Chat' traceable :execute, name: 'Run Duo Chat'
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
subject { described_class.new(prompt_message, nil, **options).execute } subject { described_class.new(prompt_message, nil, **options).execute }
shared_examples 'success' do shared_examples 'success' do
it 'calls the ZeroShot Agent with the right parameters', :snowplow do xit 'calls the ZeroShot Agent with the right parameters', :snowplow do
expected_params = [ expected_params = [
user_input: content, user_input: content,
tools: match_array(tools), tools: match_array(tools),
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
let(:stream_response_handler) { instance_double(Gitlab::Llm::ResponseService) } let(:stream_response_handler) { instance_double(Gitlab::Llm::ResponseService) }
it 'correctly initializes response handlers' do xit 'correctly initializes response handlers' do
expected_params = [ expected_params = [
user_input: content, user_input: content,
tools: an_instance_of(Array), tools: an_instance_of(Array),
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
) )
end end
it 'sends process_gitlab_duo_question snowplow event with value eql 0' do xit 'sends process_gitlab_duo_question snowplow event with value eql 0' do
allow_next_instance_of(::Gitlab::Llm::Chain::Agents::ZeroShot::Executor) do |instance| allow_next_instance_of(::Gitlab::Llm::Chain::Agents::ZeroShot::Executor) do |instance|
expect(instance).to receive(:execute).and_return(answer) expect(instance).to receive(:execute).and_return(answer)
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册