Add DeepseekV3.2 of Tongyi-Qianwen and remove unused code (#11898)

### What problem does this PR solve?

Add DeepseekV3.2 of Tongyi-Qianwen and remove unused code

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
TeslaZY
2025-12-11 13:55:01 +08:00
committed by GitHub
parent e3cfe8e848
commit bd0eff2954
5 changed files with 11 additions and 9 deletions

View File

@ -1023,7 +1023,6 @@ async def retrieval_test_embedded():
if meta_data_filter["manual"] and not local_doc_ids:
local_doc_ids = ["-999"]
tenants = UserTenantService.query(user_id=tenant_id)
for kb_id in kb_ids:
for tenant in tenants:

View File

@ -369,6 +369,13 @@
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "deepseek-v3.2",
"tags": "LLM,CHAT,128K",
"max_tokens": 128000,
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "deepseek-r1",
"tags": "LLM,CHAT,64K",

View File

@ -26,9 +26,7 @@ export const MetadataFilterSchema = {
}),
)
.optional(),
semi_auto: z
.array(z.string()) // 修改为字符串数组
.optional(),
semi_auto: z.array(z.string()).optional(),
})
.optional(),
};

View File

@ -38,7 +38,7 @@ export function MetadataSemiAutoFields({
const add = useCallback(
(key: string) => () => {
append(key); // 直接添加字符串而不是对象
append(key);
},
[append],
);
@ -66,7 +66,6 @@ export function MetadataSemiAutoFields({
</div>
<div className="space-y-5">
{fields.map((field, index) => {
// 修改字段名称以直接引用数组元素
const typeField = `${name}.${index}`;
return (
<section key={field.id} className="flex gap-2">

View File

@ -50,8 +50,8 @@ export default function TestingForm({
setValues,
}: TestingFormProps) {
const { t } = useTranslation();
const { id } = useParams(); // 正确解构出id参数
const knowledgeBaseId = id; // 现在knowledgeBaseId是字符串类型
const { id } = useParams();
const knowledgeBaseId = id;
const formSchema = z.object({
question: z.string().min(1, {
@ -100,7 +100,6 @@ export default function TestingForm({
<CrossLanguageFormField
name={'cross_languages'}
></CrossLanguageFormField>
{/* 添加元数据过滤组件 */}
<MetadataFilter prefix=""></MetadataFilter>
</FormContainer>
<FormField