mirror of
https://github.com/mudler/cogito.git
synced 2026-07-23 18:35:23 -04:00
491e03ad71
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
13 lines
276 B
Go
13 lines
276 B
Go
package cogito
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/sashabaranov/go-openai"
|
|
)
|
|
|
|
type LLM interface {
|
|
Ask(ctx context.Context, f Fragment) (Fragment, error)
|
|
CreateChatCompletion(ctx context.Context, request openai.ChatCompletionRequest) (openai.ChatCompletionResponse, error)
|
|
}
|