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
Name | Type |
---|---|
settings | PartialBaseUrlPartsApiConfigurationOptions |
Returns
Defined in
packages/modelfusion/src/model-provider/ollama/OllamaFacade.ts:17
ChatTextGenerator
▸ ChatTextGenerator(settings
): OllamaChatModel
Parameters
Name | Type |
---|---|
settings | OllamaChatModelSettings |
Returns
Defined in
packages/modelfusion/src/model-provider/ollama/OllamaFacade.ts:27
CompletionTextGenerator
▸ CompletionTextGenerator<CONTEXT_WINDOW_SIZE
>(settings
): OllamaCompletionModel
<CONTEXT_WINDOW_SIZE
>
Type parameters
Name | Type |
---|---|
CONTEXT_WINDOW_SIZE | extends number |
Parameters
Name | Type |
---|---|
settings | OllamaCompletionModelSettings <CONTEXT_WINDOW_SIZE > |
Returns
OllamaCompletionModel
<CONTEXT_WINDOW_SIZE
>
Defined in
packages/modelfusion/src/model-provider/ollama/OllamaFacade.ts:21
TextEmbedder
▸ TextEmbedder(settings
): OllamaTextEmbeddingModel
Parameters
Name | Type |
---|---|
settings | OllamaTextEmbeddingModelSettings |
Returns
Defined in
packages/modelfusion/src/model-provider/ollama/OllamaFacade.ts:31
Type Aliases
ChatMessage
Ƭ ChatMessage: Object
Type declaration
Name | Type | Description |
---|---|---|
content | string | - |
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