Documentation ¶
Index ¶
Constants ¶
View Source
const ( StepNone = iota StepSelectProvider StepSelectLLM StepEnterAPIKey StepEnterAccountID StepToggleConfirmation )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnthropicRequest ¶
type AnthropicResponse ¶
type AnthropicResponse struct { Content []struct { Text string `json:"text"` } `json:"content"` }
type CloudflareRequest ¶
type CloudflareResponse ¶
type CloudflareResponse struct { Result struct { Response string `json:"response"` } `json:"result"` }
type OllamaModel ¶
type OllamaModel struct {
Name string `json:"name"`
}
type OllamaResponse ¶
type OllamaResponse struct {
Models []OllamaModel `json:"models"`
}
type OpenAIEmbeddingRequest ¶
type OpenAIEmbeddingRequest struct { Model string `json:"model"` Input interface{} `json:"input"` }
type OpenAIEmbeddingResponse ¶
type OpenAIEmbeddingResponse struct { Object string `json:"object"` Data []struct { Object string `json:"object"` Index int `json:"index"` Embedding []float32 `json:"embedding"` } `json:"data"` Model string `json:"model"` Usage struct { PromptTokens int `json:"prompt_tokens"` TotalTokens int `json:"total_tokens"` } `json:"usage"` }
type OpenAIRequest ¶
type OpenAIResponse ¶
Click to show internal directories.
Click to hide internal directories.