Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatModelString ¶
FormatModelString formats provider and model into a comma-separated string
func ParseModelString ¶
ParseModelString parses a model string which can be either "model" or "provider,model"
func RouterMiddleware ¶
func RouterMiddleware(cfg *config.Config) gin.HandlerFunc
RouterMiddleware creates a middleware that performs intelligent model routing
Types ¶
type RouteDecision ¶
type RouteDecision struct {
Provider string
Model string
Reason string
Parameters map[string]interface{}
}
RouteDecision represents the result of routing logic
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router handles intelligent model routing based on various criteria
func (*Router) GetProviderForModel ¶
GetProviderForModel returns the provider for a given model based on configuration
Click to show internal directories.
Click to hide internal directories.