admin page oluşturuldu.

This commit is contained in:
2025-11-21 01:21:37 +03:00
parent 26acaccacd
commit cf42825705
13 changed files with 915 additions and 60 deletions

View File

@@ -78,8 +78,10 @@ const extractContent = (payload) => {
return '';
};
export const isGlmConfigured = () => Boolean(GLM_API_KEY);
export const translateWithGlm = async (text) => {
if (!GLM_API_KEY) {
if (!isGlmConfigured()) {
throw new Error('ZAI_GLM_API_KEY veya ANTHROPIC_API_KEY tanımlı değil.');
}