Update slug system & upgrade packages.
Some checks are pending
Build and Push Latest Image / build-and-push (push) Waiting to run

This commit is contained in:
yuanhau 2025-06-15 09:28:26 +08:00
parent a33a2364ef
commit b5217e04fe
3 changed files with 121 additions and 116 deletions

View file

@ -19,8 +19,11 @@ export default defineEventHandler(async (event) => {
groqClient = new Groq({
apiKey: doesTheUserHasACustomGroqApiAndWhatIsIt.customApi,
});
} else {
groqClient = new Groq({
apiKey: process.env.GROQ_API_KEY,
});
}
const query = getQuery(event);
const locale = query.locale;
const buildURL = protocol + "://" + host + "/api/news/get/lt/" + slug;