Skip to main content

@ai16z/eliza v1.0.0 / ITextGenerationService

Interface: ITextGenerationService

Extends

Methods

getInstance()

getInstance(): ITextGenerationService

Returns

ITextGenerationService

Defined in

packages/core/src/types.ts:619


initializeModel()

initializeModel(): Promise<void>

Returns

Promise<void>

Defined in

packages/core/src/types.ts:620


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:621


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:629


getEmbeddingResponse()

getEmbeddingResponse(input): Promise<number[]>

Parameters

input: string

Returns

Promise<number[]>

Defined in

packages/core/src/types.ts:637