mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(ollama): set OLLAMA_HOST from env variable (#316)
This commit is contained in:
@@ -6,7 +6,7 @@ import { ProviderConfig, ProviderRequest, ProviderResponse, TimeSegment } from '
|
||||
import { ModelsObject } from './types'
|
||||
|
||||
const logger = createLogger('Ollama Provider')
|
||||
const OLLAMA_HOST = 'http://localhost:11434'
|
||||
const OLLAMA_HOST = process.env.OLLAMA_HOST || 'http://localhost:11434'
|
||||
|
||||
export const ollamaProvider: ProviderConfig = {
|
||||
id: 'ollama',
|
||||
|
||||
Reference in New Issue
Block a user