INNER CODE UNIT · Go
SetModel
teilomillet/gollm · config.go:80
SetModel = config.SetModel // Sets the model name for the selected provider
SetOllamaEndpoint = config.SetOllamaEndpoint // Sets the endpoint URL for Ollama local deployment
SetVLLMEndpoint = config.SetVLLMEndpoint // Sets the endpoint URL for vLLM local deployment
SetAPIKey = config.SetAPIKey // Sets the API key for the current provider
// Generation parameters
SetTemperature = config.SetTemperature // Controls randomness in generation (0.0-1.0)
SetMaxTokens = config.SetMaxTokens // Sets maximum tokens to generate
SetTopP = config.SetTopP // Controls nucleus sampling
SetFrequencyPenalty = config.SetFrequencyPenalty // Penalizes frequent token usage
SetPresencePenalty = config.SetPresencePenalty // Penalizes repeated tokens
SetSeed = config.SetSeed // Sets random seed for reproducible generation
// Advanced generation parameters
SetMinP = config.SetMinP // Sets minimum probability threshold
SetRepeatPenalty = config.SetRepeatPenalty // Controls repetition penalty
SetRepeatLastN = config.SetRepeatLastN // Sets context window for repetition
SetMirostat = config.SetMirostat // Enables Mirostat sampling