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
ProviderPreferences
Interface
v0.1.1 (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