mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-17 07:41:25 +00:00
interfaced out ai clients
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
8
pkg/ai/iai.go
Normal file
8
pkg/ai/iai.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package ai
|
||||
|
||||
import "context"
|
||||
|
||||
type IAI interface {
|
||||
Configure(token string) error
|
||||
GetCompletion(ctx context.Context, prompt string) (string, error)
|
||||
}
|
Reference in New Issue
Block a user