Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatRequest ¶
type ChatRequest struct {
Model string `json:"model"`
Prompt string `json:"prompt"`
System string `json:"system_prompt"`
Temperature float64 `json:"temperature"`
TopP float64 `json:"top_p"`
TopK int `json:"top_k"`
MaxTokens int `json:"max_tokens"`
Stream bool `json:"stream"` // If true, use WebSocket
}
ChatRequest is the payload sent by the UI to start generation
type ChatResponse ¶
ChatResponse is a single chunk of generated text
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse is a standard error wrapper
type ModelDownloadRequest ¶
ModelDownloadRequest triggers a new download
Click to show internal directories.
Click to hide internal directories.