Groq is a company that develops hardware and software for accelerating artificial intelligence and machine learning workloads. They specialize in creating Tensor Streaming Processor (TSP) architecture, which is designed to optimize the performance and efficiency of AI computations. Groq's technology aims to deliver high performance and low latency for various applications, such as natural language processing, computer vision, and recommendation systems. The company's focus on hardware acceleration distinguishes them in the field of AI infrastructure providers.
groq
const { LLMInterface } = require('llm-interface');
LLMInterface.setApiKey({'groq': process.env.GROQ_API_KEY});
async function main() {
try {
const response = await LLMInterface.sendMessage('groq', 'Explain the importance of low latency LLMs.');
console.log(response.results);
} catch (error) {
console.error(error);
throw error;
}
}
main();
The following model aliases are provided for this provider.
default
: llama3-8b-8192large
: llama3-70b-8192small
: gemma-7b-itagent
: llama3-8b-8192
The following parameters can be passed through options
.
frequency_penalty
: Details not available, please refer to the LLM provider documentation.function_call
: Details not available, please refer to the LLM provider documentation.functions
: Details not available, please refer to the LLM provider documentation.logit_bias
: Details not available, please refer to the LLM provider documentation.max_tokens
: Details not available, please refer to the LLM provider documentation.n
: Details not available, please refer to the LLM provider documentation.presence_penalty
: Details not available, please refer to the LLM provider documentation.stop
: Details not available, please refer to the LLM provider documentation.stream
: Details not available, please refer to the LLM provider documentation.temperature
: Details not available, please refer to the LLM provider documentation.top_p
: Details not available, please refer to the LLM provider documentation.user
: Details not available, please refer to the LLM provider documentation.
- Streaming
- Functions
Free: The Groq API is currently free to use.
To get an API key, first create a Groq account, then visit the link below.
Groq documentation is available here.