Properties
codec
codec: EventStreamCodec = ...
credentials
credentials: CredentialType
fetchFn
fetchFn: { 
    (input, init?): Promise<Response>; 
    (input, init?): Promise<Response>; 
}
Type declaration
- 
- (input, init?): Promise<Response>
- 
Parameters
- 
input: URL | RequestInfo
- 
Optionalinit: RequestInit
 
 Returns Promise<Response>
- (input, init?): Promise<Response>
- 
Parameters
- 
input: RequestInfo
- 
Optionalinit: RequestInit
 
 Returns Promise<Response>
 
 
model
model: string = "amazon.titan-tg1-large"
streaming
streaming: boolean = false
Optional endpointHost
endpointHost?: string
Optional maxTokens
maxTokens?: number = undefined
Optional modelKwargs
modelKwargs?: Record<string, unknown>
Optional stopSequences
stopSequences?: string[]
Optional temperature
temperature?: number = undefined
 
Example