This commit is contained in:
2026-03-13 21:53:38 -03:00
commit e001b458f9
16 changed files with 813 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package llm
import (
"os"
)
// Service defines the interface for connecting to LLMs
type Service interface {
SendOpenAIRequest(systemPrompt string, userPrompt string, model string) (string, error)
SendGeminiRequest(systemPrompt string, userPrompt string, model string) (string, error)
}
type llmService struct{}
// NewLLMService creates a new LLM service instance
func NewLLMService() Service {
return &llmService{}
}
func getEnvConfig(key string) string {
if val := os.Getenv(key); val != "" {
return val
}
return ""
}