修改了API

This commit is contained in:
Yakumo Hokori
2025-09-18 14:37:31 +08:00
parent c65525a1ab
commit 4d005b384f
4 changed files with 5661 additions and 7 deletions

1
.gitignore vendored
View File

@@ -22,3 +22,4 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
CLAUDE.md

View File

@@ -13,6 +13,7 @@
"@tauri-apps/api": "^2", "@tauri-apps/api": "^2",
"@tauri-apps/plugin-opener": "^2", "@tauri-apps/plugin-opener": "^2",
"element-plus": "^2.10.4", "element-plus": "^2.10.4",
"tauri": "^0.15.0",
"vue": "^3.5.13", "vue": "^3.5.13",
"vue-router": "^4.5.1" "vue-router": "^4.5.1"
}, },

5662
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
const API_KEY: &str = "AIzaSyDBienhzI5Y3o9N4foi7QQRarTtuOIsVJg"; // 请替换为您的OpenAI API密钥 const API_KEY: &str = "sk-2tosmoMAa45r9HrovQ24oC4nmMfeSI4a8vq8gyElC2ZRRrqv"; // 请替换为您的OpenAI API密钥
const API_URL: &str = "https://melodic-bonbon-359e24.netlify.app/edge/v1/chat/completions"; const API_URL: &str = "https://api.llvho.com/v1/chat/completions";
// --- Structs for Serialization (Request) --- // --- Structs for Serialization (Request) ---