Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOpenRouterChatProvider ¶
func NewOpenRouterChatProvider(config *OpenRouterConfig) contracts.IChatAIProvider
NewOpenRouterChatProvider initializes a new OpenAPIProvider.
Types ¶
type OpenRouterConfig ¶
type OpenRouterConfig struct { BaseURL string Model string Temperature *float32 ReasoningEffort *string EncodingFormat string ApiKey string MaxTokens int TokenManagement contracts2.ITokenManagement ApiVersion string }
OpenRouterConfig implements the Provider interface for OpenAPI.
func (*OpenRouterConfig) ChatCompletionRequest ¶
func (openRouterProvider *OpenRouterConfig) ChatCompletionRequest(ctx context.Context, userInput string, prompt string) <-chan general_models.StreamResponse
Click to show internal directories.
Click to hide internal directories.