mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-12 13:27:06 +00:00
@@ -13,10 +13,10 @@ type OpenAIClient struct {
|
||||
|
||||
func (c *OpenAIClient) Configure(token string) error {
|
||||
client := openai.NewClient(token)
|
||||
|
||||
if client == nil {
|
||||
return errors.New("error creating OpenAI client")
|
||||
}
|
||||
c.client = client
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user