backup: 完成 HR_position_ 表格前綴重命名與欄位對照表整理
變更內容: - 所有資料表加上 HR_position_ 前綴 - 整理完整欄位顯示名稱與 ID 對照表 - 模組化 JS 檔案 (admin.js, ai.js, csv.js 等) - 專案結構優化 (docs/, scripts/, tests/ 等) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
26
scripts/check_models.py
Normal file
26
scripts/check_models.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""
|
||||
Check available models on Ollama API
|
||||
"""
|
||||
import requests
|
||||
import urllib3
|
||||
|
||||
# Disable SSL warnings
|
||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
API_URL = "https://ollama_pjapi.theaken.com"
|
||||
|
||||
print("Available models on Ollama API:")
|
||||
print("-" * 60)
|
||||
|
||||
try:
|
||||
response = requests.get(f"{API_URL}/v1/models", timeout=10, verify=False)
|
||||
if response.status_code == 200:
|
||||
data = response.json()
|
||||
models = data.get('data', [])
|
||||
for i, model in enumerate(models, 1):
|
||||
model_id = model.get('id', 'Unknown')
|
||||
print(f"{i}. {model_id}")
|
||||
else:
|
||||
print(f"Error: {response.status_code}")
|
||||
except Exception as e:
|
||||
print(f"Error: {str(e)}")
|
||||
Reference in New Issue
Block a user