mirror of
https://github.com/mudler/cogito.git
synced 2026-07-24 10:55:21 -04:00
e5b763e1cc
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
18 lines
366 B
Go
18 lines
366 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) (LLMReply, error)
|
|
}
|
|
|
|
type LLMReply struct {
|
|
ChatCompletionResponse openai.ChatCompletionResponse
|
|
ReasoningContent string
|
|
}
|