Skip to main content

Namespace: ollama

Namespaces

Functions

Api

Api(settings): OllamaApiConfiguration

Creates an API configuration for the Ollama API. It calls the API at http://127.0.0.1:11434 by default.

Parameters

NameType
settingsPartialBaseUrlPartsApiConfigurationOptions

Returns

OllamaApiConfiguration

Defined in

packages/modelfusion/src/model-provider/ollama/OllamaFacade.ts:17


ChatTextGenerator

ChatTextGenerator(settings): OllamaChatModel

Parameters

NameType
settingsOllamaChatModelSettings

Returns

OllamaChatModel

Defined in

packages/modelfusion/src/model-provider/ollama/OllamaFacade.ts:27


CompletionTextGenerator

CompletionTextGenerator<CONTEXT_WINDOW_SIZE>(settings): OllamaCompletionModel<CONTEXT_WINDOW_SIZE>

Type parameters

NameType
CONTEXT_WINDOW_SIZEextends number

Parameters

NameType
settingsOllamaCompletionModelSettings<CONTEXT_WINDOW_SIZE>

Returns

OllamaCompletionModel<CONTEXT_WINDOW_SIZE>

Defined in

packages/modelfusion/src/model-provider/ollama/OllamaFacade.ts:21


TextEmbedder

TextEmbedder(settings): OllamaTextEmbeddingModel

Parameters

NameType
settingsOllamaTextEmbeddingModelSettings

Returns

OllamaTextEmbeddingModel

Defined in

packages/modelfusion/src/model-provider/ollama/OllamaFacade.ts:31

Type Aliases

ChatMessage

Ƭ ChatMessage: Object

Type declaration

NameTypeDescription
contentstring-
images?string[]Images. Supports base64-encoded png and jpeg images up to 100MB in size.
role"system" | "user" | "assistant"-

Defined in

packages/modelfusion/src/model-provider/ollama/OllamaChatModel.ts:33


ChatPrompt

Ƭ ChatPrompt: ChatMessage[]

Defined in

packages/modelfusion/src/model-provider/ollama/OllamaChatModel.ts:43