123456789101112131415161718192021222324 |
- package llm
- import (
- "net/http"
- "time"
- )
- type LLMClient struct {
- BaseURL string
- HttpClient *http.Client
- }
- func NewLLMClient(baseURL string, timeout time.Duration) *LLMClient {
- return &LLMClient{
- BaseURL: baseURL,
- HttpClient: &http.Client{
- Timeout: timeout * time.Second,
- },
- }
- }
- type LLMService interface {
- AskQuestion() string
- }
|