langchain.js
Preparing search index...
@langchain/community
chat_models/portkey
PortkeyChat
Class PortkeyChat
Hierarchy (
View Summary
)
BaseDynamicToolInput
PortkeyChat
Index
Constructors
constructor
Properties
api
Key?
base
URL?
llms?
mode?
session
Methods
_
combine
LLM
Output
_
generate
_
llm
Type
_
stream
Response
Chunks
Constructors
constructor
new
PortkeyChat
(
init
?:
Partial
<
PortkeyChat
>
)
:
PortkeyChat
Parameters
Optional
init
:
Partial
<
PortkeyChat
>
Returns
PortkeyChat
Properties
Optional
api
Key
apiKey
?:
string
= undefined
Optional
base
URL
baseURL
?:
string
= undefined
Optional
llms
llms
?:
null
|
[
LLMOptions
]
= undefined
Optional
mode
mode
?:
string
= undefined
session
session
:
PortkeySession
Methods
_
combine
LLM
Output
_combineLLMOutput
()
:
{}
Returns
{}
_
generate
_generate
(
messages
:
BaseMessage
[]
,
options
:
unknown
,
_
?:
any
,
)
:
Promise
<
ChatResult
>
Parameters
messages
:
BaseMessage
[]
options
:
unknown
Optional
_
:
any
Returns
Promise
<
ChatResult
>
_
llm
Type
_llmType
()
:
string
Returns
string
_
stream
Response
Chunks
_streamResponseChunks
(
messages
:
BaseMessage
[]
,
options
:
unknown
,
runManager
?:
any
,
)
:
AsyncGenerator
<
ChatGenerationChunk
>
Parameters
messages
:
BaseMessage
[]
options
:
unknown
Optional
runManager
:
any
Returns
AsyncGenerator
<
ChatGenerationChunk
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
api
Key
base
URL
llms
mode
session
Methods
_
combine
LLM
Output
_
generate
_
llm
Type
_
stream
Response
Chunks
langchain.js
Loading...