From 4b104f2146c473349153340400e7edc8767b7072 Mon Sep 17 00:00:00 2001 From: 21in7 Date: Fri, 27 Mar 2026 19:58:18 +0900 Subject: [PATCH] chore: update OLLAMA_HOST and API endpoint in AIPlanner, and add .cursor to .gitignore --- .gitignore | 1 + ai_planner.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 02bf444..72b7d6a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ inventory_memory.json ore_patch_memory.json agent_last_action_memory.json .cursor/.worktrees/ +.cursor \ No newline at end of file diff --git a/ai_planner.py b/ai_planner.py index d34642d..b1c2991 100644 --- a/ai_planner.py +++ b/ai_planner.py @@ -23,7 +23,7 @@ import httpx OLLAMA_MODEL = os.environ.get("OLLAMA_MODEL", "qwen3.5:9b") -OLLAMA_HOST = os.environ.get("OLLAMA_HOST", "http://192.168.50.67:11434") +OLLAMA_HOST = os.environ.get("OLLAMA_HOST", "http://192.168.50.61:1234") SYSTEM_PROMPT = """당신은 팩토리오 게임을 순수하게 플레이하는 AI 에이전트입니다. @@ -208,7 +208,7 @@ class AIPlanner: "options": {"temperature": 0.3, "num_ctx": 8192}, } resp = httpx.post( - f"{OLLAMA_HOST}/api/chat", + f"{OLLAMA_HOST}/api/v1/chat", json=payload, timeout=600.0, )