Documentation
¶
Overview ¶
Package setting provides minimal configuration stubs for relay providers. In LingRein, these are backed by a database-backed settings system. In library mode, they return sensible defaults that can be overridden by the consuming application.
Index ¶
- func GetGeminiVersionSetting(modelName string) string
- func IsSyncImageModel(modelName string) bool
- func SetGlobalSettings(s *GlobalSettings)
- func ShouldPreserveThinkingSuffix(modelName string) bool
- func WithCompactModelSuffix(suffix string) string
- func WithCompactModelVariants(baseModelList []string) []string
- type GeminiSetting
- type GlobalSettings
- type ModelSetting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGeminiVersionSetting ¶
GetGeminiVersionSetting returns the API version for a Gemini model. Defaults to "v1beta".
func IsSyncImageModel ¶
IsSyncImageModel reports whether a model supports synchronous image generation. Defaults to false.
func SetGlobalSettings ¶
func SetGlobalSettings(s *GlobalSettings)
SetGlobalSettings replaces the global settings.
func ShouldPreserveThinkingSuffix ¶
ShouldPreserveThinkingSuffix reports whether a model's thinking suffix should be preserved. In library mode, defaults to false.
func WithCompactModelSuffix ¶
WithCompactModelSuffix returns a model name with a compact suffix. In library mode, returns the input unchanged.
func WithCompactModelVariants ¶
WithCompactModelVariants returns the base model list for compact mode. In library mode, returns the input unchanged.
Types ¶
type GeminiSetting ¶
type GeminiSetting struct {
ThinkingAdapterEnabled bool
ThinkingAdapterBudgetTokensPercentage float64
RemoveFunctionResponseIdEnabled bool
}
GeminiSetting holds Gemini-specific settings.
func GetGeminiSettings ¶
func GetGeminiSettings() *GeminiSetting
GetGeminiSettings returns the Gemini settings instance.
type GlobalSettings ¶
type GlobalSettings struct {
PassThroughRequestEnabled bool
}
GlobalSettings holds global relay settings. All fields default to false/empty.
func GetGlobalSettings ¶
func GetGlobalSettings() *GlobalSettings
GetGlobalSettings returns the global settings instance.
type ModelSetting ¶
type ModelSetting struct {
ThinkingAdapterEnabled bool
ThinkingAdapterBudgetTokensPercentage float64
}
ModelSetting holds model-specific settings.
func GetModelSetting ¶
func GetModelSetting() *ModelSetting
GetModelSetting returns the model settings instance.