Closed Jac-Zac closed 3 weeks ago
Latest commit: 49cfb8a9fdef0915cea90948cf721eaf4c6e20b8
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The changes introduce a new provider, Groq, to the system by incorporating the necessary configurations, environment variables, and initialization functions. Specifically, the updates include adding the GROQ_API_KEY
environment variable, updating model selection and configuration prompts, and modifying initializations and settings in multiple templates for different frameworks (Express and FastAPI). These additions expand the flexibility and options available for users in selecting and configuring models.
Files | Change Summary |
---|---|
helpers/env-variables.ts |
Added the GROQ_API_KEY environment variable to the getModelEnvs function for the Groq provider. |
helpers/providers/groq.ts |
Introduced askGroqQuestions function to handle Groq API key and model configuration interactions. |
helpers/providers/index.ts |
Included Groq-related functions and updated askModelConfig to support Groq as a model choice. |
helpers/types.ts |
Added "groq" to the ModelProvider type definition. |
.../streaming/express/.../settings.ts |
Added Groq initialization, imports, and model settings configurations in the Express controller. |
.../streaming/fastapi/app/settings.py |
Added Groq initialization and corresponding imports in the FastAPI settings. |
.changeset/pink-terms-cheer.md |
Documented the addition of Groq as a new model provider. |
sequenceDiagram
participant User
participant System
participant GroqAPI
User->>System: Choose Groq model
System->>User: Prompt for API Key
User->>System: Enter API Key
System->>GroqAPI: Validate API Key
GroqAPI-->>System: Confirmation
System-->>User: API Key validated
User->>System: Select Model
System->>GroqAPI: Fetch available models
GroqAPI-->>System: Return model list
System-->>User: Display model list
In the realm of code, where changes grow,
Groq embarks on a brand-new show.
Models and keys, now intertwined,
In Express and FastAPI, they bind.
With Groq aboard, let queries soar,
The code's horizon broadens more! 🚀🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
I'd like to propose adding support for Groq as a model provider. I'm not deeply familiar with the existing implementation, but I believe this could be useful. If anyone is interested in help me with it, I'd appreciate the assistance (since I really do not have much time lately). I hope this is a good starting point.
Summary by CodeRabbit
New Features
Improvements