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
Anthropic
AWS
Cloudflare
DeepSeek
Google
Node
Google Cloud SQL PG
Google Common
Google GAuth
Google GenAI
Google Vertex AI
Google Vertex AI Web
Google WebAuth
Groq
Mistral AI
MongoDB
Ollama
OpenAI
OpenRouter
Overview
Chat Models
Redis
Turbopuffer
xAI
Language
Python
JavaScript
Theme
Light
Dark
JavaScript
@langchain/openrouter
OpenRouter
ProviderPreferences
Interface
v0.2.0 (latest)
ā
Since v0.1
ProviderPreferences
Copy
interface
ProviderPreferences
Properties
property
allow_fallbacks
:
boolean
|
null
property
data_collection
:
DataCollection
property
enforce_distillable_text
:
boolean
|
null
property
ignore
:
string
|
string
& __
type
[] |
null
property
max_price
:
__
type
property
only
:
string
|
string
& __
type
[] |
null
property
order
:
string
|
string
& __
type
[] |
null
property
preferred_max_latency
:
PreferredMaxLatency
property
preferred_min_throughput
:
PreferredMinThroughput
property
quantizations
:
Quantization
[] |
null
property
require_parameters
:
boolean
|
null
property
sort
:
ProviderSortUnion
|
null
property
zdr
:
boolean
|
null
View source on GitHub
Version History