unified-llm-client
Preparing search index...
GeminiCountTokensOptions
Interface GeminiCountTokensOptions
interface
GeminiCountTokensOptions
{
apiKey
:
string
;
body
:
Record
<
string
,
unknown
>
;
fetchImplementation
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
;
model
:
string
;
signal
?:
AbortSignal
;
url
?:
string
;
}
Index
Properties
api
Key
body
fetch
Implementation?
model
signal?
url?
Properties
api
Key
apiKey
:
string
body
body
:
Record
<
string
,
unknown
>
Optional
fetch
Implementation
fetchImplementation
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
Type Declaration
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
URL
|
RequestInfo
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
string
|
URL
|
Request
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
model
model
:
string
Optional
signal
signal
?:
AbortSignal
Optional
url
url
?:
string
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
api
Key
body
fetch
Implementation
model
signal
url
unified-llm-client
Loading...
MDN Reference