chore: update OLLAMA_HOST and API endpoint in AIPlanner, and add .cursor to .gitignore

This commit is contained in:
21in7
2026-03-27 19:58:18 +09:00
parent c93785a809
commit 4b104f2146
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@ inventory_memory.json
ore_patch_memory.json
agent_last_action_memory.json
.cursor/.worktrees/
.cursor

View File

@@ -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,
)