LangChain Reference home page
Search...
āK
Ask AI
GitHub
Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
āI
LangChain Assistant
New
History
Ask a question to get started
Enter
to send
ā¢
Shift+Enter
new line
Menu
Navigation
Projects
Community
Anthropic
AWS
Azure CosmosDB
Azure Dynamic Sessions
Baidu Qianfan
Cerebras
Cloudflare
Cohere
DeepSeek
Exa
Google Cloud SQL PG
Google Common
Google GAuth
Google GenAI
Google Vertex AI
Google Vertex AI Web
Google WebAuth
Groq
Mistral AI
Mixedbread AI
MongoDB
Nomic
Ollama
OpenAI
OpenRouter
Overview
Chat Models
Pinecone
Qdrant
Redis
Tavily
Turbopuffer
Weaviate
xAI
Yandex
Language
Python
JavaScript
Theme
Light
Dark
JavaScript
@langchain/openrouter
OpenRouter
ChatGenerationParams
Interface
v0.1.1 (latest)
ā
Since v0.1
ChatGenerationParams
Copy
interface
ChatGenerationParams
Properties
property
debug
:
__
type
property
frequency_penalty
:
number
|
null
property
image_config
:
Record
<
string
,
string
|
number
|
unknown
[]>
property
logit_bias
:
Record
<
string
,
number
> |
null
property
logprobs
:
boolean
|
null
property
max_completion_tokens
:
number
|
null
property
max_tokens
:
number
|
null
property
messages
:
Message
[]
property
metadata
:
Record
<
string
,
string
>
property
modalities
:
string
& __
type
|
"text"
|
"image"
[]
property
model
:
string
property
models
:
string
[]
property
parallel_tool_calls
:
boolean
|
null
property
plugins
:
PluginDefinition
[]
property
presence_penalty
:
number
|
null
property
provider
:
ProviderPreferences
|
null
property
reasoning
:
__
type
property
response_format
:
__
type
| __
type
|
ResponseFormatJSONSchema
|
ResponseFormatTextGrammar
| __
type
property
route
:
"fallback"
|
string
& __
type
|
"sort"
|
null
property
seed
:
number
|
null
property
session_id
:
string
property
stop
:
string
|
string
[] |
null
property
stream
:
boolean
property
stream_options
:
ChatStreamOptions
|
null
property
temperature
:
number
|
null
property
tool_choice
:
ToolChoiceOption
property
tools
:
ToolDefinitionJson
[]
property
top_logprobs
:
number
|
null
property
top_p
:
number
|
null
property
trace
:
TraceConfig
property
user
:
string
View source on GitHub
Version History