Preparing search index...
The search index is not available
@qbraid-core
@qbraid-core
@qbraid-core/chat
ChatClient
Class ChatClient
Hierarchy (
View Summary
)
QbraidClient
ChatClient
Index
Constructors
constructor
Properties
session
Methods
create
Message
get
Models
get
User
running
In
Lab
Constructors
constructor
new
ChatClient
(
session
?:
QbraidSession
)
:
ChatClient
Parameters
Optional
session
:
QbraidSession
Returns
ChatClient
Properties
Protected
session
session
:
QbraidSession
The QbraidSession instance used by this client.
Methods
create
Message
createMessage
(
prompt
:
string
,
model
?:
string
)
:
Promise
<
ChatResponse
>
Parameters
prompt
:
string
model
:
string
= 'gpt-4o-mini'
Returns
Promise
<
ChatResponse
>
get
Models
getModels
()
:
Promise
<
ChatModel
[]
>
Returns
Promise
<
ChatModel
[]
>
get
User
getUser
()
:
Promise
<
QbraidUser
>
Returns
Promise
<
QbraidUser
>
running
In
Lab
runningInLab
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
session
Methods
create
Message
get
Models
get
User
running
In
Lab
@qbraid-core
Loading...
The QbraidSession instance used by this client.