This commit is contained in:
2026-03-11 15:14:45 +08:00
parent 813005ab9c
commit 8379be1630
6 changed files with 45 additions and 12 deletions

View File

@@ -35,9 +35,3 @@ export const notCNBCheck = (ctx: any) => {
}
return false;
}
const repo = useKey('CNB_REPO_SLUG_LOWERCASE') as string || 'kevision/kevision';
export const cnbAi = createOpenAICompatible({
baseURL: `https://api.cnb.cool/${repo}/-/ai/`,
name: 'custom-cnb',
apiKey: token,
});