Variable: ollama
constollama: (modelId,config?) =>ModelConfig&object
Defined in: packages/core/src/providers/factories.ts:140
Ollama. Defaults to a local server at http://127.0.0.1:11434
(OLLAMA_BASE_URL overrides); an API key is only needed by Ollama Cloud or
a server behind a token.
Type Declaration
models
models: (
config?) =>Promise<ModelInfo[]>
List the models the configured Ollama server has pulled, newest-first.
Parameters
config?
Returns
Promise<ModelInfo[]>
Example
Remote Ollama with authentication
const bot = new Baleybot({
model: ollama('llama3.2', {
baseUrl: 'https://ollama.mycompany.com',
apiKey: 'my-api-key'
})
});