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

Function buildKey

entrypoints/utils/cache.ts:7–12  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

5
6// 构建缓存 key
7function buildKey(message: string) {
8 const { service, model, to, style, customModel } = config;
9 const selectedModel = model[service] === customModelString ? customModel[service] : model[service];
10 // 前缀_服务_模型_目标语言_消息
11 return [prefix, style, service, selectedModel, to, message].join('_');
12}
13
14export const cache = {
15 // 存入缓存并设置过期时间

Callers 3

localSetFunction · 0.85
localGetFunction · 0.85
localRemoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected