Discover and explore top open-source AI tools and projects—updated daily.
groqAccess Groq AI models via Node.js and TypeScript
Top 99.8% on SourcePulse
The groq-sdk is the official Node.js and TypeScript library for interacting with the Groq REST API. It provides developers with a type-safe and convenient way to integrate Groq's large language models into server-side applications, simplifying API calls and data handling.
How It Works
This library is generated using Stainless, ensuring comprehensive TypeScript definitions for all API requests and responses. It abstracts away the complexities of direct HTTP requests, offering a clean interface for common tasks like chat completions and audio transcriptions. The library includes built-in mechanisms for handling file uploads through various input types and provides robust error management with automatic retries for transient network or server issues.
Quick Start & Requirements
npm install groq-sdkprocess.env['GROQ_API_KEY'].dangerouslyAllowBrowser: true during client instantiation, but this exposes API credentials client-side.Highlighted Details
fs.ReadStream, browser File objects, fetch Responses, or a toFile helper utility.fetch Response objects via .asResponse() or .withResponse() methods for advanced handling.client.get, client.post) and handling undocumented parameters or response properties with // @ts-expect-error.Maintenance & Community
The README mentions contributing documentation, indicating an active development process. Specific community channels (like Discord/Slack) or notable contributors are not detailed in the provided text.
Licensing & Compatibility
The license type is not specified in the provided README content. Compatibility for commercial use or linking with closed-source projects is therefore undetermined from this information.
Limitations & Caveats
dangerouslyAllowBrowser: true), which poses a security risk by exposing API credentials in client-side code.1 week ago
Inactive
abhishekkrthakur