Migrated to vercel

This commit is contained in:
2025-04-21 10:08:28 +03:00
parent 54bb69bb32
commit 18d266e415
20 changed files with 212 additions and 2320 deletions

View File

@@ -0,0 +1,15 @@
import { tryit } from "radash";
export const useOpenAI = () => {
const config = useRuntimeConfig();
const client = $fetch.create({
baseURL: "https://api.openai.com/v1",
headers: {
Authorization: `Bearer ${config.openaiApiKey}`,
},
method: "post",
});
return tryit(client);
};