MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / formatHomeGeminiModel

Function formatHomeGeminiModel

internal/api/server.go:1256–1271  ·  view source on GitHub ↗
(entry homeModelEntry)

Source from the content-addressed store, hash-verified

1254}
1255
1256func formatHomeGeminiModel(entry homeModelEntry) map[string]any {
1257 name := entry.id
1258 if !strings.HasPrefix(name, "models/") {
1259 name = "models/" + name
1260 }
1261 displayName := entry.displayName
1262 if displayName == "" {
1263 displayName = entry.id
1264 }
1265 return map[string]any{
1266 "name": name,
1267 "displayName": displayName,
1268 "description": displayName,
1269 "supportedGenerationMethods": []string{"generateContent"},
1270 }
1271}
1272
1273func homeGeminiModelMatches(entry homeModelEntry, action string) bool {
1274 id := strings.TrimSpace(entry.id)

Callers 2

handleHomeGeminiModelMethod · 0.85
formatHomeGeminiModelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected