Merge branch 'main' into local_models

This commit is contained in:
Ettore Di Giacinto
2023-04-25 09:56:04 +02:00
committed by GitHub
7 changed files with 133 additions and 35 deletions

View File

@@ -15,12 +15,14 @@ package ai
import (
"context"
"github.com/k8sgpt-ai/k8sgpt/pkg/cache"
)
type IAI interface {
Configure(config IAIConfig, language string) error
GetCompletion(ctx context.Context, prompt string) (string, error)
Parse(ctx context.Context, prompt []string, nocache bool) (string, error)
Parse(ctx context.Context, prompt []string, cache cache.ICache) (string, error)
GetName() string
}