fix(ai): remove 188 ollama provider
All checks were successful
Code Review / ai-code-review (push) Successful in 12s
CD Pipeline / tests (push) Successful in 1m13s
CD Pipeline / build-and-deploy (push) Successful in 3m36s
CD Pipeline / post-deploy-checks (push) Successful in 1m20s

This commit is contained in:
Your Name
2026-05-06 14:33:16 +08:00
parent 578bf3bc7c
commit 4111ea4f9f
33 changed files with 193 additions and 233 deletions

View File

@@ -16,7 +16,7 @@ import httpx
import pytest
# Ollama 伺服器配置
OLLAMA_URL = os.getenv("OLLAMA_URL", "http://192.168.0.188:11434")
OLLAMA_URL = os.getenv("OLLAMA_URL", "http://192.168.0.111:11434")
DEFAULT_MODEL = os.getenv("OLLAMA_MODEL", "qwen2.5:7b-instruct")
TIMEOUT = 300 # 秒 (CPU 推理模式需 ~222-666 秒,見 2026-03-26 評估)
@@ -111,7 +111,7 @@ async def check_ollama_available() -> bool:
@pytest.mark.integration
class TestModelRegression:
"""模型回歸測試 — 需要 Ollama 服務 (192.168.0.188:11434)"""
"""模型回歸測試 — 需要 Ollama 服務(預設 111可用 OLLAMA_URL 覆寫)"""
@pytest.fixture(autouse=True)
async def check_ollama(self):