Skip to main content

Interface: ITextGenerationService

Extends

Methods

getEmbeddingResponse()

getEmbeddingResponse(input): Promise<number[]>

Parameters

input: string

Returns

Promise<number[]>

Defined in

packages/core/src/types.ts:625


getInstance()

getInstance(): ITextGenerationService

Returns

ITextGenerationService

Defined in

packages/core/src/types.ts:607


initializeModel()

initializeModel(): Promise<void>

Returns

Promise<void>

Defined in

packages/core/src/types.ts:608


queueMessageCompletion()

queueMessageCompletion(context, temperature, stop, frequency_penalty, presence_penalty, max_tokens): Promise<any>

Parameters

context: string

temperature: number

stop: string[]

frequency_penalty: number

presence_penalty: number

max_tokens: number

Returns

Promise<any>

Defined in

packages/core/src/types.ts:609


queueTextCompletion()

queueTextCompletion(context, temperature, stop, frequency_penalty, presence_penalty, max_tokens): Promise<string>

Parameters

context: string

temperature: number

stop: string[]

frequency_penalty: number

presence_penalty: number

max_tokens: number

Returns

Promise<string>

Defined in

packages/core/src/types.ts:617