bolt.new/app
Vishwanath Martur fdefd717b0 Add groq support
Related to #4763

Add groq API support with groq SDK.

* **Initialize groq instance**: Import `createGroq` from `groq` SDK and add `createGroqInstance`, `getGroqModel`, and `getGroqLlamaModel` functions in `app/lib/.server/llm/model.ts`.
* **Stream text responses**: Import `getGroqModel` in `app/lib/.server/llm/stream-text.ts`, update `streamText` function to use `getGroqModel`, and set headers for the `groq` instance.
* **Add constants**: Add constants for maximum tokens and response segments limits for the `groq` model in `app/lib/.server/llm/constants.ts`.
* **Retrieve API key**: Update `getAPIKey` function in `app/lib/.server/llm/api-key.ts` to retrieve the API key for the `groq` model.
* **Update routes**: Import `createGroq` in `app/routes/api.chat.ts` and `app/routes/api.enhancer.ts`.
2024-12-28 13:58:12 +05:30
..
components fix: don't always show scrollbars (#548) 2024-10-16 16:05:22 +01:00
lib Add groq support 2024-12-28 13:58:12 +05:30
routes Add groq support 2024-12-28 13:58:12 +05:30
styles fix: remove monorepo 2024-09-25 19:54:09 +01:00
types fix: remove monorepo 2024-09-25 19:54:09 +01:00
utils fix(npm): fix hanging shells (#159) 2024-10-07 16:24:29 +02:00
entry.client.tsx fix(browser-extensions): don't render directly in body 2024-10-07 10:49:31 +02:00
entry.server.tsx fix(browser-extensions): don't render directly in body 2024-10-07 10:49:31 +02:00
root.tsx fix(browser-extensions): don't render directly in body 2024-10-07 10:49:31 +02:00