MCPcopy Create free account
hub / github.com/Bistutu/FluentRead / normalTemplate

Function normalTemplate

entrypoints/utils/template.ts:92–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90export function tongyiMsgTemplate(origin: string) {
91 let model = config.model[config.service] === customModelString ? config.customModel[config.service] : config.model[config.service]
92 const normalTemplate = () => {
93 let system = config.system_role[config.service] || defaultOption.system_role;
94 let user = (config.user_role[config.service] || defaultOption.user_role)
95 .replace('{{to}}', config.to).replace('{{origin}}', origin);
96
97 return JSON.stringify({
98 "model": model,
99 "enable_thinking": false,
100 "messages": [
101 {"role": "system", "content": system},
102 {"role": "user", "content": user},
103 ]
104 })
105 }
106 // 翻译模型qwen-mt-plus和qwen-mt-turbo的格式和通用的不同
107 const mtModelTemplate = () => {
108 const langMap = [

Callers 1

tongyiMsgTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected