GenAI.Provider.Groq (Noizu Labs, GenAI Wrapper v0.1.0)
This module implements the GenAI provider for Groq AI.
Link to this section Summary
Functions
Sends a chat completion request to the Groq API.
Retrieves a list of available Groq models.
Link to this section Functions
Link to this function
chat(messages, tools, settings)
Sends a chat completion request to the Groq API.
This function constructs the request body based on the provided messages, tools, and settings, sends the request to the Groq API, and returns a GenAI.ChatCompletion
struct with the response.
Link to this function
models(settings \\ [])
Retrieves a list of available Groq models.
This function calls the Groq API to retrieve a list of models and returns them as a list of GenAI.Model
structs.