feat: unify aiClientName const for all providers (#848)

This commit is contained in:
Matthis
2024-01-07 13:01:15 +01:00
committed by GitHub
parent ce4910bc5d
commit 5c17c24055
8 changed files with 29 additions and 15 deletions

View File

@@ -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
}