Rebuild and update project functionality

This commit is contained in:
Gemini AI
2025-12-26 13:13:36 +04:00
Unverified
parent 57576051b3
commit 6fc923c8ba
20 changed files with 375 additions and 396 deletions

View File

@@ -4,3 +4,19 @@ export const QWEN_OAUTH_TOKEN_ENDPOINT = `${QWEN_OAUTH_BASE_URL}/api/v1/oauth2/t
export const QWEN_OAUTH_CLIENT_ID = "f0304373b74a44d2b584a3fb70ca9e56";
export const QWEN_OAUTH_SCOPE = "openid profile email model.completion";
export const QWEN_OAUTH_DEVICE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
export const QWEN_USER_AGENT =
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36";
export function createQwenHeaders(contentType?: string) {
const headers: Record<string, string> = {
Accept: "application/json",
"User-Agent": QWEN_USER_AGENT,
};
if (contentType) {
headers["Content-Type"] = contentType;
}
return headers;
}