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:
2025-12-09 12:05:20 +08:00
parent a068ef9704
commit a6af297623
82 changed files with 8685 additions and 4933 deletions

79
tests/test_ollama2.py Normal file
View File

@@ -0,0 +1,79 @@
"""
Test Ollama API with different parameters
"""
import requests
import json
import urllib3
# Disable SSL warnings
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
API_URL = "https://ollama_pjapi.theaken.com"
print("=" * 60)
print("Testing Ollama Chat Completion - Variant Tests")
print("=" * 60)
print()
# Test 1: Using qwen2.5:72b (actual available model)
print("Test 1: Using qwen2.5:72b model...")
try:
chat_request = {
"model": "qwen2.5:72b",
"messages": [
{"role": "user", "content": "Say hello in Chinese."}
]
}
response = requests.post(
f"{API_URL}/v1/chat/completions",
json=chat_request,
headers={'Content-Type': 'application/json'},
timeout=60,
verify=False
)
print(f"Status Code: {response.status_code}")
if response.status_code == 200:
result = response.json()
text = result['choices'][0]['message']['content']
print(f"Success! Response: {text}")
else:
print(f"Error: {response.text}")
except Exception as e:
print(f"Error: {str(e)}")
print()
# Test 2: Try deepseek-chat model
print("Test 2: Using deepseek-chat model...")
try:
chat_request = {
"model": "deepseek-chat",
"messages": [
{"role": "user", "content": "Say hello in Chinese."}
]
}
response = requests.post(
f"{API_URL}/v1/chat/completions",
json=chat_request,
headers={'Content-Type': 'application/json'},
timeout=60,
verify=False
)
print(f"Status Code: {response.status_code}")
if response.status_code == 200:
result = response.json()
text = result['choices'][0]['message']['content']
print(f"Success! Response: {text}")
else:
print(f"Error: {response.text}")
except Exception as e:
print(f"Error: {str(e)}")
print()
print("=" * 60)