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

Function geminiMsgTemplate

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

Source from the content-addressed store, hash-verified

54
55// gemini
56export function geminiMsgTemplate(origin: string) {
57 let user = (config.user_role[config.service] || defaultOption.user_role)
58 .replace('{{to}}', config.to).replace('{{origin}}', origin);
59
60 return JSON.stringify({
61 "contents": [
62 {"role": "user", "parts": [{"text": user}]},
63 ]
64 })
65}
66
67// claude
68export function claudeMsgTemplate(origin: string) {

Callers 1

geminiFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected