We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f2592d commit 1b8b987Copy full SHA for 1b8b987
1 file changed
apps/backend-convex/convex/http/ai.ts
@@ -62,17 +62,6 @@ aiApp
62
63
await rateLimiter.limit(c.env, 'aiChat', { key: userIdentity?.subject ?? lockerKey, throws: true })
64
65
- const _providerSdk = (() => {
66
- switch (provider) {
67
- case 'openai':
68
- return createOpenAI({ apiKey })
69
- case 'openrouter':
70
- return createOpenRouter({ apiKey })
71
- default:
72
- return undefined
73
- }
74
- })()
75
-
76
// Cast type and runQuery to check for permission
77
const threadId = _threadId as Id<'threads'>
78
const thread = await c.env.runQuery(api.threads.get, { threadId, lockerKey })
0 commit comments