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

Function yiyanMsgTemplate

entrypoints/utils/template.ts:134–145  ·  view source on GitHub ↗
(origin: string)

Source from the content-addressed store, hash-verified

132
133// 文心一言
134export function yiyanMsgTemplate(origin: string) {
135 let user = (config.user_role[config.service] || defaultOption.user_role)
136 .replace('{{to}}', config.to).replace('{{origin}}', origin);
137
138 return JSON.stringify({
139 'temperature': 0.7,
140 'disable_search': true, // 禁用搜索
141 'messages': [
142 {"role": "user", "content": user},
143 ],
144 })
145}
146
147export function minimaxTemplate(origin: string) {
148

Callers 1

yiyanFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected