Documentation
¶
Overview ¶
Package aicli provides the interface for sending request to assistant.
Index ¶
Constants ¶
View Source
const ( GenericRoleDescEN = `You are a helpful assistant, able to answer user questions in a clear and friendly manner.` GenericRoleDescCN = `你是一个有帮助的助手,能够以清晰、友好的方式回答用户的问题。` GopherRoleDescEN = `` /* 510-byte string literal not displayed */ GopherRoleDescCN = `` /* 407-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assistanter ¶
type Assistanter interface {
Send(ctx context.Context, prompt string, files ...string) (string, error)
SendStream(ctx context.Context, prompt string, files ...string) *StreamReply
RefreshContext()
ListModelNames(ctx context.Context) ([]string, error)
}
Assistanter interface for sending request to assistant
type StreamReply ¶
StreamReply reply with stream response
Directories
¶
| Path | Synopsis |
|---|---|
|
Package chatgpt provides a client for the OpenAI chat GPT API.
|
Package chatgpt provides a client for the OpenAI chat GPT API. |
|
Package deepseek provides a client for the DeepSeek API.
|
Package deepseek provides a client for the DeepSeek API. |
|
Package gemini provides a client for the Google generative AI API.
|
Package gemini provides a client for the Google generative AI API. |
Click to show internal directories.
Click to hide internal directories.