@mobilon-dev/gigachat-api-client - v0.0.2
Preparing search index...
ApiClient
Class ApiClient
Index
Constructors
constructor
Methods
delete
File
download
File
get
Available
Tokens
get
File
Info
get
File
List
get
Models
send
Request
upload
File
Properties
axios
token
Constructors
constructor
new
ApiClient
(
jwt
:
string
,
options
:
IApiClientOptions
)
:
ApiClient
Parameters
jwt
:
string
options
:
IApiClientOptions
Returns
ApiClient
Methods
delete
File
deleteFile
(
fileId
:
string
)
:
Promise
<
any
>
Parameters
fileId
:
string
Returns
Promise
<
any
>
download
File
downloadFile
(
fileId
:
string
,
filename
:
string
,
created_at
:
number
)
:
Promise
<
any
>
Parameters
fileId
:
string
filename
:
string
created_at
:
number
Returns
Promise
<
any
>
get
Available
Tokens
getAvailableTokens
()
:
Promise
<
any
>
Returns
Promise
<
any
>
get
File
Info
getFileInfo
(
fileId
:
string
)
:
Promise
<
any
>
Parameters
fileId
:
string
Returns
Promise
<
any
>
get
File
List
getFileList
()
:
Promise
<
any
>
Returns
Promise
<
any
>
get
Models
getModels
()
:
Promise
<
any
>
Returns
Promise
<
any
>
send
Request
sendRequest
(
model
:
string
,
messages
:
object
[]
)
:
Promise
<
any
>
Parameters
model
:
string
messages
:
object
[]
Returns
Promise
<
any
>
upload
File
uploadFile
(
file
:
File
)
:
Promise
<
any
>
Parameters
file
:
File
Returns
Promise
<
any
>
Properties
axios
axios
:
any
token
token
:
any
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
delete
File
download
File
get
Available
Tokens
get
File
Info
get
File
List
get
Models
send
Request
upload
File
Properties
axios
token
@mobilon-dev/gigachat-api-client - v0.0.2
Loading...