OllamaConfig constructor

const OllamaConfig({
  1. String baseUrl = ProviderDefaults.ollamaBaseUrl,
  2. String? apiKey,
  3. String model = ProviderDefaults.ollamaDefaultModel,
  4. int? maxTokens,
  5. double? temperature,
  6. String? systemPrompt,
  7. Duration? timeout,
  8. double? topP,
  9. int? topK,
  10. List<Tool>? tools,
  11. StructuredOutputFormat? jsonSchema,
  12. int? numCtx,
  13. int? numGpu,
  14. int? numThread,
  15. bool? numa,
  16. int? numBatch,
  17. String? keepAlive,
  18. bool? raw,
  19. bool? reasoning,
  20. LLMConfig? originalConfig,
})

Implementation

const OllamaConfig({
  this.baseUrl = ProviderDefaults.ollamaBaseUrl,
  this.apiKey,
  this.model = ProviderDefaults.ollamaDefaultModel,
  this.maxTokens,
  this.temperature,
  this.systemPrompt,
  this.timeout,
  this.topP,
  this.topK,
  this.tools,
  this.jsonSchema,
  // Ollama-specific parameters
  this.numCtx,
  this.numGpu,
  this.numThread,
  this.numa,
  this.numBatch,
  this.keepAlive,
  this.raw,
  this.reasoning,
  LLMConfig? originalConfig,
}) : _originalConfig = originalConfig;