From c7f82282402eebd85e6a15953af3210b10da9ac1 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 14 Jun 2025 15:47:07 +0200 Subject: [PATCH] Updated Ollama text generation (markdown) --- Ollama-text-generation.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Ollama-text-generation.md b/Ollama-text-generation.md index 512be7a..de979a1 100644 --- a/Ollama-text-generation.md +++ b/Ollama-text-generation.md @@ -24,7 +24,7 @@ After installing Ollama, you need to download an AI model (think of it as the "b - **Mac**: Press `Cmd + Space`, type `Terminal`, press Enter - **Linux**: Press `Ctrl + Alt + T` -2. **Type this command and press Enter:** +2. **Type the command and press Enter:** ``` ollama run llama3.2 ``` @@ -33,18 +33,16 @@ After installing Ollama, you need to download an AI model (think of it as the "b 4. **You'll see a prompt like `>>>` when it's ready** - just type `exit` to close it -## Step 3: Configure Fantasy Map Generator +5. Visit [ollama.com/search](https://ollama.com/search) to see what other models you can download. -1. **Open Command Prompt/Terminal again** -2. **Type:** `ollama serve` -3. **Leave this window open** - Ollama is now running! -4. **Open Fantasy Map Generator** -5. **Select "ollama" from the AI model list** -6. **In the key field, type:** `llama3.2` (or whatever model you downloaded) +## Step 3: Start the server -**Important:** Fantasy Map Generator connects to Ollama at `http://localhost:11434/api/generate`. This should work automatically if you followed the steps above. +1. Open Command Prompt/Terminal. Type: `ollama serve`. Leave this window open** - Ollama is now running! +2. Open Fantasy Map Generator. Open AI notes generator and select "ollama" from the AI model list +3. In the key field, type: `llama3.2` (or whatever model you downloaded) +4. Update the prompt and click on `generate` -If you need to change the connection address, you can modify the endpoint in the `ai-generator.js` file. +**Important:** Fantasy Map Generator connects to Ollama at `http://localhost:11434/api/generate`. This should work automatically by default. If you need to change the connection address, you can modify the endpoint in the FMG `ai-generator.js` file. That's It! You can now generate text using your local AI model.