GitHub

ConfigService

API reference for ConfigService.

OpenRouter's chat request options and the library's own.

Attributes

AttributeTypeDescription
modelstr
modelsGT.ChatModelNames
providerGT.ProviderPreferences
pluginsSequence[GT.AutoRouterPlugin | GT.AutoBetaRouterPlugin | GT.ModerationPlugin | GT.WebSearchPlugin | GT.WebFetchPlugin | GT.FileParserPlugin | GT.ResponseHealingPlugin | GT.ContextCompressionPlugin | GT.ParetoRouterPlugin | GT.FusionPlugin]
reasoningGT.ChatRequest__reasoning
reasoning_effortLiteral['max', 'xhigh', 'high', 'medium', 'low', 'minimal', 'none'] | None
temperaturefloat | None
top_pfloat | None
top_kfloat | None
top_afloat | None
min_pfloat | None
max_tokensfloat | None
max_completion_tokensfloat | None
frequency_penaltyfloat | None
presence_penaltyfloat | None
repetition_penaltyfloat | None
logit_biasMapping[str, float] | None
logprobsbool | None
top_logprobsfloat | None
seedfloat | None
stopstr | Sequence[str] | None
stop_server_tools_whenGT.StopServerToolsWhen
parallel_tool_callsbool | None
modalitiesSequence[Literal['text', 'image', 'audio']]
metadataGT.ChatRequest__metadata
predictionGT.Prediction
prompt_cache_keystr | None
prompt_cache_optionsGT.PromptCacheOptions
routeGT.DeprecatedRoute
cache_controlGT.AnthropicCacheControlDirective
service_tierLiteral['auto', 'default', 'flex', 'priority', 'scale'] | None
session_idstr
userstr
traceGT.TraceConfig
debugGT.ChatDebugOptions
image_configGT.ImageConfig
strict_json_schemabool

The strictness of a schema-backed response format (not of tools).