Spent a hour fixing the login & registing system & also finding errors
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run

in the custom groq api system (also a typo wasted way too much time)
This commit is contained in:
yuanhau 2025-06-07 15:49:28 +08:00
parent a8d675e2ae
commit 1eb15058d7
3 changed files with 25 additions and 18 deletions

View file

@ -11,6 +11,7 @@ export default defineEventHandler(async (event) => {
const protocol = getRequestProtocol(event);
const slug = getRouterParam(event, "slug");
const userToken = getCookie(event, "token") || "";
console.log("Token: ", userToken);
const doesTheUserHasACustomGroqApiAndWhatIsIt =
await checkIfUserHasCustomGroqKey(userToken);
let groqClient = groq;