Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatResponse ¶
type ChatResponse struct {
Content string
}
type LLM ¶
type LLM interface { Chat(ctx context.Context, model, prompt string) (*ChatResponse, error) Summarize(ctx context.Context, model string, text string) (*ChatResponse, error) }
func NewOpenAILLM ¶
func NewOpenAILLM(config OpenAIConfig) (LLM, error)
type OpenAIConfig ¶
Click to show internal directories.
Click to hide internal directories.