getBaseConfigMap method

Map<String, dynamic> getBaseConfigMap(
  1. LLMConfig config
)

Common configuration transformation for basic parameters This handles the most common config fields that most providers use

Implementation

Map<String, dynamic> getBaseConfigMap(LLMConfig config) {
  return {
    'apiKey': config.apiKey,
    'baseUrl': config.baseUrl,
    'model': config.model,
    'maxTokens': config.maxTokens,
    'temperature': config.temperature,
    'systemPrompt': config.systemPrompt,
    'timeout': config.timeout,
    'topP': config.topP,
    'topK': config.topK,
    'tools': config.tools,
    'toolChoice': config.toolChoice,
  };
}