Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOllamaRoutes ¶
func AddOllamaRoutes(mux *http.ServeMux, deps CompatDeps)
func AddOpenAIRoutes ¶
func AddOpenAIRoutes(mux *http.ServeMux, deps CompatDeps)
func AddRootRoutes ¶
func AddRootRoutes(mux *http.ServeMux, deps CompatDeps)
Types ¶
type ChatCompletionRequest ¶
type ChatCompletionRequest struct {
Model string `json:"model"`
Messages []ChatMessage `json:"messages"`
Stream bool `json:"stream"`
Temperature *float64 `json:"temperature,omitempty"`
MaxTokens *int `json:"max_tokens,omitempty"`
MaxCompletionTokens *int `json:"max_completion_tokens,omitempty"`
Stop []string `json:"stop,omitempty"`
}
type ChatMessage ¶
type ChatMessage struct {
Role string `json:"role"`
Content string `json:"content"`
Images []taskengine.ImagePart `json:"-"`
}
func (*ChatMessage) UnmarshalJSON ¶
func (m *ChatMessage) UnmarshalJSON(data []byte) error
type CompatDeps ¶
type CompatDeps struct {
Agent agentservice.Agent
Chains taskchainservice.Service
StateService stateservice.Service
Defaults stateservice.RuntimeDefaults
Auth middleware.AuthZReader
Token string
}
type FIMCompletionRequest ¶
Click to show internal directories.
Click to hide internal directories.