Skip to main content

Namespace: llamacpp

Namespaces

Functions

Api

Api(settings): LlamaCppApiConfiguration

Creates an API configuration for the Llama.cpp server. It calls the API at http://127.0.0.1:8080 by default.

Parameters

NameType
settingsPartialBaseUrlPartsApiConfigurationOptions

Returns

LlamaCppApiConfiguration

Defined in

packages/modelfusion/src/model-provider/llamacpp/LlamaCppFacade.ts:18


CompletionTextGenerator

CompletionTextGenerator<CONTEXT_WINDOW_SIZE>(settings?): LlamaCppCompletionModel<CONTEXT_WINDOW_SIZE>

Type parameters

NameType
CONTEXT_WINDOW_SIZEextends number

Parameters

NameType
settingsLlamaCppCompletionModelSettings<CONTEXT_WINDOW_SIZE>

Returns

LlamaCppCompletionModel<CONTEXT_WINDOW_SIZE>

Defined in

packages/modelfusion/src/model-provider/llamacpp/LlamaCppFacade.ts:22


TextEmbedder

TextEmbedder(settings?): LlamaCppTextEmbeddingModel

Parameters

NameType
settingsLlamaCppTextEmbeddingModelSettings

Returns

LlamaCppTextEmbeddingModel

Defined in

packages/modelfusion/src/model-provider/llamacpp/LlamaCppFacade.ts:28


Tokenizer

Tokenizer(api?): LlamaCppTokenizer

Parameters

NameType
apiApiConfiguration

Returns

LlamaCppTokenizer

Defined in

packages/modelfusion/src/model-provider/llamacpp/LlamaCppFacade.ts:34