diff options
Diffstat (limited to 'internal/llm/openai.go')
| -rw-r--r-- | internal/llm/openai.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/internal/llm/openai.go b/internal/llm/openai.go index 279eca4..dbcee4d 100644 --- a/internal/llm/openai.go +++ b/internal/llm/openai.go @@ -15,10 +15,10 @@ import ( // openAIClient implements Client against OpenAI's Chat Completions API. type openAIClient struct { - httpClient *http.Client - apiKey string - baseURL string - defaultModel string + httpClient *http.Client + apiKey string + baseURL string + defaultModel string } // Colors and base styling are provided by logging.go @@ -159,3 +159,7 @@ func trimPreview(s string, n int) string { } return s[:n] + "…" } + +// Provider metadata +func (c *openAIClient) Name() string { return "openai" } +func (c *openAIClient) DefaultModel() string { return c.defaultModel } |
