Documentation
¶
Overview ¶
Package fimproviders provides concrete FIM provider implementations.
Index ¶
- func NewDeepSeek(opts ...DeepSeekOption) fim.Completer
- func NewMistral(opts ...MistralOption) fim.Completer
- type DeepSeekOption
- func WithDeepSeekAPIKey(key string) DeepSeekOption
- func WithDeepSeekBaseURL(url string) DeepSeekOption
- func WithDeepSeekHTTPClient(hc *http.Client) DeepSeekOption
- func WithDeepSeekMaxTokens(n int64) DeepSeekOption
- func WithDeepSeekModel(model string) DeepSeekOption
- func WithDeepSeekTemperature(t float64) DeepSeekOption
- type MistralOption
- func WithMistralAPIKey(key string) MistralOption
- func WithMistralBaseURL(url string) MistralOption
- func WithMistralHTTPClient(hc *http.Client) MistralOption
- func WithMistralMaxTokens(n int64) MistralOption
- func WithMistralModel(model string) MistralOption
- func WithMistralTemperature(t float64) MistralOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeepSeek ¶
func NewDeepSeek(opts ...DeepSeekOption) fim.Completer
NewDeepSeek creates a DeepSeek FIM client.
func NewMistral ¶
func NewMistral(opts ...MistralOption) fim.Completer
NewMistral creates a Mistral Codestral FIM client.
Types ¶
type DeepSeekOption ¶
type DeepSeekOption func(*deepseekClient)
DeepSeekOption configures the DeepSeek FIM client.
func WithDeepSeekAPIKey ¶
func WithDeepSeekAPIKey(key string) DeepSeekOption
WithDeepSeekAPIKey sets the API key.
func WithDeepSeekBaseURL ¶
func WithDeepSeekBaseURL(url string) DeepSeekOption
WithDeepSeekBaseURL overrides the API endpoint.
func WithDeepSeekHTTPClient ¶
func WithDeepSeekHTTPClient(hc *http.Client) DeepSeekOption
WithDeepSeekHTTPClient sets a custom HTTP client.
func WithDeepSeekMaxTokens ¶
func WithDeepSeekMaxTokens(n int64) DeepSeekOption
WithDeepSeekMaxTokens sets the default max tokens.
func WithDeepSeekModel ¶
func WithDeepSeekModel(model string) DeepSeekOption
WithDeepSeekModel sets the model (default: deepseek-coder).
func WithDeepSeekTemperature ¶
func WithDeepSeekTemperature(t float64) DeepSeekOption
WithDeepSeekTemperature sets the default sampling temperature.
type MistralOption ¶
type MistralOption func(*mistralClient)
MistralOption configures the Mistral FIM client.
func WithMistralAPIKey ¶
func WithMistralAPIKey(key string) MistralOption
WithMistralAPIKey sets the API key.
func WithMistralBaseURL ¶
func WithMistralBaseURL(url string) MistralOption
WithMistralBaseURL overrides the API endpoint (useful for testing).
func WithMistralHTTPClient ¶
func WithMistralHTTPClient(hc *http.Client) MistralOption
WithMistralHTTPClient sets a custom HTTP client.
func WithMistralMaxTokens ¶
func WithMistralMaxTokens(n int64) MistralOption
WithMistralMaxTokens sets the default max tokens to generate.
func WithMistralModel ¶
func WithMistralModel(model string) MistralOption
WithMistralModel sets the model (default: codestral-latest).
func WithMistralTemperature ¶
func WithMistralTemperature(t float64) MistralOption
WithMistralTemperature sets the default sampling temperature.