mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
import{_ as t,o,c as d,ag as a}from"./chunks/framework.DEqXEGcv.js";const r="/getting-started/provider-model-01-sidebar.png",l="/getting-started/provider-model-02-add-provider.png",i="/getting-started/provider-model-03-provider-dialog.png",n="/getting-started/provider-model-04-provider-selected.png",v=JSON.parse('{"title":"Configure Provider and Model","description":"","frontmatter":{},"headers":[],"relativePath":"getting-started/provider-and-model.md","filePath":"getting-started/provider-and-model.md","lastUpdated":1771162384000}'),s={name:"getting-started/provider-and-model.md"};function p(c,e,g,h,m,u){return o(),d("div",null,[...e[0]||(e[0]=[a('<h1 id="configure-provider-and-model" tabindex="-1">Configure Provider and Model <a class="header-anchor" href="#configure-provider-and-model" aria-label="Permalink to "Configure Provider and Model""></a></h1><p>Before creating bots, you need to configure at least one LLM provider and add chat and embedding models. This guide walks you through the Web UI.</p><h2 id="prerequisites" tabindex="-1">Prerequisites <a class="header-anchor" href="#prerequisites" aria-label="Permalink to "Prerequisites""></a></h2><ul><li>Memoh is running (see <a href="/installation/docker.html">Docker installation</a>)</li><li>You have logged in to the Web UI at <a href="http://localhost:8082" target="_blank" rel="noreferrer">http://localhost:8082</a></li></ul><h2 id="step-1-open-the-models-page" tabindex="-1">Step 1: Open the Models Page <a class="header-anchor" href="#step-1-open-the-models-page" aria-label="Permalink to "Step 1: Open the Models Page""></a></h2><p>Click <strong>Models</strong> in the left sidebar to open the Provider and Model configuration page.</p><p><img src="'+r+'" alt="Models page - sidebar"></p><p>The page has two panels:</p><ul><li><strong>Left</strong>: Provider list and filter</li><li><strong>Right</strong>: Selected provider's details and models (or an empty state if none selected)</li></ul><h2 id="step-2-add-a-provider" tabindex="-1">Step 2: Add a Provider <a class="header-anchor" href="#step-2-add-a-provider" aria-label="Permalink to "Step 2: Add a Provider""></a></h2><p>Click the <strong>Add Provider</strong> button (with a plus icon) at the bottom of the left panel.</p><p><img src="'+l+'" alt="Add Provider button"></p><p>In the dialog, fill in:</p><table tabindex="0"><thead><tr><th>Field</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>A display name for this provider (e.g. <code>my-openai</code>, <code>ollama-local</code>)</td></tr><tr><td><strong>API Key</strong></td><td>Your API key. For local services like Ollama, you can use a placeholder like <code>ollama</code></td></tr><tr><td><strong>Base URL</strong></td><td>The API base URL (e.g. <code>https://api.openai.com/v1</code>, <code>http://localhost:11434/v1</code> for Ollama)</td></tr><tr><td><strong>Type</strong></td><td>Client type: <code>openai</code>, <code>openai-compat</code>, <code>anthropic</code>, <code>google</code>, <code>azure</code>, <code>bedrock</code>, <code>mistral</code>, <code>xai</code>, <code>ollama</code>, <code>dashscope</code></td></tr></tbody></table><p><img src="'+i+'" alt="Add Provider dialog"></p><p><strong>Example — OpenAI:</strong></p><ul><li>Name: <code>openai</code></li><li>API Key: <code>sk-...</code></li><li>Base URL: <code>https://api.openai.com/v1</code></li><li>Type: <code>openai</code></li></ul><p><strong>Example — Ollama (local):</strong></p><ul><li>Name: <code>ollama</code></li><li>API Key: <code>ollama</code></li><li>Base URL: <code>http://localhost:11434/v1</code></li><li>Type: <code>ollama</code></li></ul><p>Click <strong>Add</strong> to save. The new provider appears in the left sidebar.</p><h2 id="step-3-add-models" tabindex="-1">Step 3: Add Models <a class="header-anchor" href="#step-3-add-models" aria-label="Permalink to "Step 3: Add Models""></a></h2><p>Select a provider from the left panel. The right panel shows the provider form and the model list.</p><p><img src="'+n+'" alt="Provider selected - model list"></p><p>Click <strong>Add Model</strong> to open the model creation dialog.</p><p>Fill in:</p><table tabindex="0"><thead><tr><th>Field</th><th>Description</th></tr></thead><tbody><tr><td><strong>Type</strong></td><td><code>chat</code> or <code>embedding</code></td></tr><tr><td><strong>Model</strong></td><td>Model ID (e.g. <code>gpt-4</code>, <code>llama3.2</code>, <code>text-embedding-3-small</code>)</td></tr><tr><td><strong>Display Name</strong></td><td>Optional display name</td></tr><tr><td><strong>Dimensions</strong></td><td>Required for embedding models (e.g. <code>1536</code> for OpenAI embeddings)</td></tr><tr><td><strong>Multimodal</strong></td><td>For chat models only — enable if the model supports images</td></tr></tbody></table><p><strong>You need at least:</strong></p><ul><li>One <strong>chat</strong> model (for conversation)</li><li>One <strong>embedding</strong> model (for memory)</li></ul><p>Add them under the same or different providers. For example:</p><ul><li>Chat: <code>gpt-4</code> (OpenAI) or <code>llama3.2</code> (Ollama)</li><li>Embedding: <code>text-embedding-3-small</code> (OpenAI) or <code>nomic-embed-text</code> (Ollama)</li></ul><h2 id="step-4-edit-or-delete" tabindex="-1">Step 4: Edit or Delete <a class="header-anchor" href="#step-4-edit-or-delete" aria-label="Permalink to "Step 4: Edit or Delete""></a></h2><ul><li><strong>Provider</strong>: After selecting a provider, you can edit Name, API Key, and Base URL in the right panel, or delete the provider.</li><li><strong>Model</strong>: Use the edit or delete actions on each model card in the list.</li></ul><h2 id="next-steps" tabindex="-1">Next Steps <a class="header-anchor" href="#next-steps" aria-label="Permalink to "Next Steps""></a></h2><p>Once you have at least one chat model and one embedding model, you can create a bot (via <strong>Bots</strong> in the sidebar) and assign these models in the bot settings.</p>',34)])])}const f=t(s,[["render",p]]);export{v as __pageData,f as default};
|