fix(ai): 统一模型传输与页面配置,公式列设计不再绕过组织设置
This commit is contained in:
@@ -168,7 +168,7 @@ def test_design_column_preserves_clarification_branch_and_full_conversation(form
|
||||
}
|
||||
],
|
||||
}
|
||||
with patch("finance.formula_views.httpx.Client") as http:
|
||||
with patch("finance.ai.httpx.Client") as http:
|
||||
http.return_value.__enter__.return_value.post.return_value = type(
|
||||
"Response",
|
||||
(),
|
||||
@@ -209,7 +209,7 @@ def test_design_column_preserves_clarification_branch_and_full_conversation(form
|
||||
{"role": "assistant", "content": "请说明计算方式和缺失值处理。"},
|
||||
{"role": "user", "content": "收入减成本,缺失时不可用"},
|
||||
]
|
||||
with patch("finance.formula_views.httpx.Client") as client:
|
||||
with patch("finance.ai.httpx.Client") as client:
|
||||
client.return_value.__enter__.return_value.post.return_value = Response()
|
||||
result = design_column(
|
||||
messages,
|
||||
@@ -251,7 +251,7 @@ def test_design_column_returns_only_validated_formula_definition(formula_data, s
|
||||
},
|
||||
},
|
||||
)()
|
||||
with patch("finance.formula_views.httpx.Client") as http:
|
||||
with patch("finance.ai.httpx.Client") as http:
|
||||
http.return_value.__enter__.return_value.post.return_value = response
|
||||
result = design_column(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user