(entry homeModelEntry)
| 1254 | } |
| 1255 | |
| 1256 | func 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 | |
| 1273 | func homeGeminiModelMatches(entry homeModelEntry, action string) bool { |
| 1274 | id := strings.TrimSpace(entry.id) |
no outgoing calls
no test coverage detected