feat: add lineloss URL mapping in derive_request_url_from_instruction
临时方案:检测指令中包含'线损'或'lineloss'时返回台区线损平台 URL 🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
@@ -378,6 +378,12 @@ fn derive_request_url_from_instruction(instruction: &str) -> Option<String> {
|
|||||||
return Some("https://zhuanlan.zhihu.com".to_string());
|
return Some("https://zhuanlan.zhihu.com".to_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 台区线损相关
|
||||||
|
// TODO: 临时方案,后续应从 skill 配置或 deterministic_submit 解析结果中获取
|
||||||
|
if instruction.contains("线损") || instruction.contains("lineloss") {
|
||||||
|
return Some("http://20.76.57.61:18080".to_string());
|
||||||
|
}
|
||||||
|
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user