Optional
baseUrl
baseUrl?: string
Optional
checkOrPullModel
checkOrPullModel?: boolean
Optional
embeddingOnly
embeddingOnly?: boolean
Optional
f16Kv
f16Kv?: boolean
Optional
fetch
fetch?: {
(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
(input: string | Request | URL, init?: RequestInit): Promise<Response>;
}
Type Declaration
- (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
Parameters
- input: RequestInfo | URL
Optional
init: RequestInit
Returns Promise<Response>
- (input: string | Request | URL, init?: RequestInit): Promise<Response>
Parameters
- input: string | Request | URL
Optional
init: RequestInit
Returns Promise<Response>
format?: string | Record<string, any>
Optional
frequencyPenalty
frequencyPenalty?: number
headers?: Headers | Record<string, string>
Optional
keepAlive
keepAlive?: string | number
Optional
logitsAll
logitsAll?: boolean
Optional
lowVram
lowVram?: boolean
Optional
mainGpu
mainGpu?: number
Optional
mirostat
mirostat?: number
Optional
mirostatEta
mirostatEta?: number
Optional
mirostatTau
mirostatTau?: number
Optional
model
model?: string
Optional
numa
numa?: boolean
Optional
numBatch
numBatch?: number
Optional
numCtx
numCtx?: number
Optional
numGpu
numGpu?: number
Optional
numKeep
numKeep?: number
Optional
numPredict
numPredict?: number
Optional
numThread
numThread?: number
Optional
penalizeNewline
penalizeNewline?: boolean
Optional
presencePenalty
presencePenalty?: number
Optional
repeatLastN
repeatLastN?: number
Optional
repeatPenalty
repeatPenalty?: number
Optional
seed
seed?: number
Optional
stop
stop?: string[]
Optional
streaming
streaming?: boolean
Optional
temperature
temperature?: number
Optional
tfsZ
tfsZ?: number
Optional
topK
topK?: number
Optional
topP
topP?: number
Optional
typicalP
typicalP?: number
Optional
useMlock
useMlock?: boolean
Optional
useMmap
useMmap?: boolean
Optional
vocabOnly
vocabOnly?: boolean
Input to chat model class.