import { OLLAMA_PORT } from "../config.js"; export function piModelsConfig(modelId: string, modelName: string): string { return JSON.stringify( { providers: { ollama: { baseUrl: `http://127.0.0.1:${OLLAMA_PORT}/v1`, api: "openai-completions", apiKey: "not-needed", models: [ { id: modelId, name: modelName, }, ], }, }, }, null, 2, ) + "\n"; } export function piSettingsConfig(): string { return JSON.stringify( { packages: ["@gordonb/pi-memory-blocks"], }, null, 2, ) + "\n"; }