mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Update slug system & upgrade packages.
Some checks are pending
Build and Push Latest Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Latest Image / build-and-push (push) Waiting to run
This commit is contained in:
parent
a33a2364ef
commit
b5217e04fe
3 changed files with 121 additions and 116 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue