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 Common
Google GAuth
Google GenAI
Google Vertex AI
Google Vertex AI Web
Google WebAuth
Groq
Mistral AI
MongoDB
Ollama
OpenAI
OpenRouter
Redis
xAI
Language
Python
JavaScript
Theme
Light
Dark
JavaScript
@langchain/community
llms
deepinfra
DeepInfraLLM
Class
latest
●
Since v1.0
DeepInfraLLM
Copy
class
DeepInfraLLM
Bases
LLM
Constructors
Properties
Methods
Inherited from
BaseLLM
(langchain_core)
Attributes
A
model_config
A
OutputType
Methods
M
ainvoke
M
abatch
View source on GitHub
Version History
M
astream
M
generate_prompt
M
agenerate_prompt
M
agenerate
M
dict
M
asdict
M
save
Inherited from
BaseLanguageModel
(langchain_core)
Attributes
A
custom_get_token_ids
A
model_config
A
InputType
Methods
M
model_post_init
M
set_verbose
M
generate_prompt
M
agenerate_prompt
M
with_structured_output
M
get_token_ids
M
get_num_tokens
M
get_num_tokens_from_messages
Inherited from
RunnableSerializable
(langchain_core)
Attributes
A
model_config
Methods
M
to_json
M
configurable_fields
M
configurable_alternatives
Inherited from
Serializable
Properties
P
lc_kwargs
P
lc_namespace
P
lc_serializable
P
lc_aliases
P
lc_attributes
P
lc_id
P
lc_secrets
P
lc_serializable_keys
Methods
M
toJSON
M
toJSONNotImplemented
M
lc_name
Inherited from
Runnable
(langchain_core)
Attributes
A
InputType
A
OutputType
A
input_schema
A
output_schema
A
config_specs
Methods
M
get_name
M
get_input_schema
M
get_input_jsonschema
M
get_output_schema
M
get_output_jsonschema
M
config_schema
constructor
constructor
property
apiKey
:
string
property
cache
:
BaseCache
<
Generation
[]>
property
callbacks
:
Callbacks
property
caller
:
AsyncCaller
property
lc_kwargs
:
SerializedFields
property
lc_namespace
:
string
[]
property
lc_runnable
:
boolean
property
lc_serializable
:
boolean
property
maxTokens
:
number
property
metadata
:
Record
<
string
,
unknown
>
property
model
:
string
property
name
:
string
property
ParsedCallOptions
:
Omit
<
CallOptions
,
Exclude
<
keyof
RunnableConfig
,
"signal"
|
"timeout"
|
"maxConcurrency"
>>
property
tags
:
string
[]
property
temperature
:
number
property
verbose
:
boolean
property
callKeys
property
lc_aliases
property
lc_attributes
property
lc_id
property
lc_secrets
property
lc_serializable_keys
property
profile
method
_addVersion
method
_batchWithConfig
method
_call
method
_callWithConfig
method
_flattenLLMResult
method
_generate
method
_generateCached
method
_getOptionsList
method
_getSerializedCacheKeyParametersForCall
method
_identifyingParams
method
_llmType
method
_modelType
method
_separateRunnableConfigFromCallOptions
method
_separateRunnableConfigFromCallOptionsCompat
method
_streamIterator
method
_streamLog
method
_streamResponseChunks
method
_transformStreamWithConfig
method
assign
method
asTool
method
batch
method
generate
method
generatePrompt
method
getGraph
method
getName
method
getNumTokens
method
invocationParams
method
invoke
method
pick
method
pipe
method
serialize
method
stream
method
streamEvents
method
streamLog
method
toJSON
method
toJSONNotImplemented
method
transform
method
withConfig
method
withFallbacks
method
withListeners
method
withRetry
method
withStructuredOutput
method
_convertInputToPromptValue
method
deserialize
method
isRunnable
method
lc_name
M
get_config_jsonschema
M
get_graph
M
get_prompts
M
ainvoke
M
batch_as_completed
M
abatch
M
abatch_as_completed
M
astream
M
astream_log
M
astream_events
M
stream_events
M
atransform
M
bind
M
with_config
M
with_listeners
M
with_alisteners
M
with_types
M
with_retry
M
map
M
with_fallbacks
M
as_tool