Skip to main content

Example Usage

from openrouter.components import Parameter

# Open enum: unrecognized values are captured as UnrecognizedStr
value: Parameter = "temperature"

Values

This is an open enum. Unrecognized values will not fail type checks.
  • "temperature"
  • "top_p"
  • "top_k"
  • "min_p"
  • "top_a"
  • "frequency_penalty"
  • "presence_penalty"
  • "repetition_penalty"
  • "max_tokens"
  • "max_completion_tokens"
  • "logit_bias"
  • "logprobs"
  • "top_logprobs"
  • "seed"
  • "response_format"
  • "structured_outputs"
  • "stop"
  • "tools"
  • "tool_choice"
  • "parallel_tool_calls"
  • "include_reasoning"
  • "reasoning"
  • "reasoning_effort"
  • "web_search_options"
  • "verbosity"