resk-llm-ts - v2.2.0
GitHub
npm
Preparing search index...
OpenAIWrapper
Class OpenAIWrapper
Index
Constructors
constructor
Methods
chat
Constructors
constructor
new
OpenAIWrapper
(
_client
:
ChatCompletionClient
,
options
?:
OptionsArg
,
)
:
OpenAIWrapper
Parameters
_client
:
ChatCompletionClient
options
:
OptionsArg
= {}
Returns
OpenAIWrapper
Methods
chat
chat
(
messages
:
{
role
:
string
;
content
:
string
}
[]
,
context
?:
Record
<
string
,
unknown
>
,
)
:
Promise
<
unknown
>
Scan the input, call the model, then validate the output.
Parameters
messages
:
{
role
:
string
;
content
:
string
}
[]
Optional
context
:
Record
<
string
,
unknown
>
Returns
Promise
<
unknown
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
chat
Documentation
GitHub
npm
resk-llm-ts - v2.2.0
Loading...
Scan the input, call the model, then validate the output.