mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-15 23:01:33 +00:00
feat: unify aiClientName const for all providers (#848)
This commit is contained in:
@@ -20,6 +20,8 @@ import (
|
||||
"github.com/sashabaranov/go-openai"
|
||||
)
|
||||
|
||||
const openAIClientName = "openai"
|
||||
|
||||
type OpenAIClient struct {
|
||||
nopCloser
|
||||
|
||||
@@ -78,5 +80,5 @@ func (c *OpenAIClient) GetCompletion(ctx context.Context, prompt string) (string
|
||||
}
|
||||
|
||||
func (c *OpenAIClient) GetName() string {
|
||||
return "openai"
|
||||
return openAIClientName
|
||||
}
|
||||
|
Reference in New Issue
Block a user