feat: Add AI service configuration flags and update service factory for improved flexibility

This commit is contained in:
scawful
2025-10-04 02:22:02 -04:00
parent 8ec723adb6
commit 2fb96cbbfd
4 changed files with 87 additions and 38 deletions

View File

@@ -3,3 +3,14 @@
#include "absl/flags/flag.h"
ABSL_FLAG(std::string, rom, "", "Path to the ROM file");
// AI Service Configuration Flags
ABSL_FLAG(std::string, ai_provider, "mock",
"AI provider to use: 'mock' (default), 'ollama', or 'gemini'");
ABSL_FLAG(std::string, ai_model, "",
"AI model to use (provider-specific, e.g., 'llama3' for Ollama, "
"'gemini-1.5-flash' for Gemini)");
ABSL_FLAG(std::string, gemini_api_key, "",
"Gemini API key (can also use GEMINI_API_KEY environment variable)");
ABSL_FLAG(std::string, ollama_host, "http://localhost:11434",
"Ollama server host URL");