unclecode/groqcall — dự án mã nguồn mở — đang có 211 sao GitHub. A Function Calls Proxy for Groq, the fastest AI alive!
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
GroqCall is a proxy server that enables lightning-fast function calls for Groq's Language Processing Unit (LPU) and other AI providers. It simplifies the creation of AI assistants by offering a wide range of built-in functions hosted on the cloud.
Quickstart
Using the Pre-built Server
To quickly start using GroqCall without running it locally, make requests to one of the following base URLs:
Cloud: https://groqcall.ai/proxy/groq/v1
Local: http://localhost:8000 (if running the proxy server locally)
Running the Proxy Locally
Clone the repository:
git clone https://github.com/unclecode/groqcall.git
cd groqcall
from phi.llm.openai.like import OpenAILike
from phi.assistant import Assistant
from phi.tools.duckduckgo import DuckDuckGo
my_groq = OpenAILike(
model="mixtral-8x7b-32768",
api_key="YOUR_GROQ_API_KEY",
base_url="https://groqcall.ai/proxy/groq/v1" # or "http://localhost:8000/proxy/groq/v1" if running locally
)
assistant = Assistant(
llm=my_groq,
tools=[DuckDuckGo()],
show_tool_calls=True,
markdown=True
)
assistant.print_response("What's happening in France? Summarize top stories with sources, very short and concise.", stream=False)
Using GroqCall with Requests
FuncHub: Schema-less Function Calls
GroqCall introduces FuncHub, which allows you to make function calls without passing the function schema.
import requests
api_key = "YOUR_GROQ_API_KEY"
header = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
}
proxy_url = "https://groqcall.ai/proxy/groq/v1/chat/completions" # or "http://localhost:8000/proxy/groq/v1/chat/completions" if running locally
request = {
"messages": [
{
"role": "system",
"content": "YOU MUST FOLLOW THESE INSTRUCTIONS CAREFULLY.\n<instructions>\n1. Use markdown to format your answers.\n</instructions>"
},
{
"role": "user",
"content": "What's happening in France? Summarize top stories with sources, very short and concise."
}
],
"model": "mixtral-8x7b-32768",
"tool_choice": "auto",
"tools": [
{
"type": "function",
"function": {
"name": "duckduck.search"
}
},
{
"type": "function",
"function": {
"name": "duckduck.news"
}
}
]
}
response = requests.post(
proxy_url,
headers=header,
json=request
)
print(response.json()["choices"][0]["message"]["content"])
If you notice, the function schema is not passed in the request. This is because GroqCall uses FuncHub to automatically detect and call the function based on the function name in the cloud, Therefore you dont't need to parse the first response, call the function, and pass again. Check "functions" folder to add your own functions. I will create more examples in the close future to explain how to add your own functions.
Passing Function Schemas
If you prefer to pass your own function schemas, refer to the Function Schema example in the cookbook.
Rune proxy with Ollama locally
Function call proxy can be used with Ollama. You should first install Ollama and run it locally. Then refer to the Ollama example in the cookbook.
Cookbook
Explore the Cookbook for more examples and use cases of GroqCall.
Motivation
Groq is a startup that designs highly specialized processor chips aimed specifically at running inference on large language models. They've introduced what they call the Language Processing Unit (LPU), and the speed is astounding—capable of producing 500 to 800 tokens per second or more.
As an admirer of Groq and their community, I built this proxy to enable function calls using the OpenAI interface, allowing it to be called from any library. This engineering workaround has proven to be immensely useful in my company for various projects.
Contributing
Contributions are welcome! If you have ideas, suggestions, or would like to contribute to this project, please reach out to me on Twitter (X) @unclecode or via email at [email protected].
Let's collaborate and make this repository even more awesome! 🚀
License
This project is licensed under the Apache License 2.0. See LICENSE for more information.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/unclecode/groqcall là nguồn chính thức.
unclecode/groqcall có phải mã nguồn mở không?
Có — unclecode/groqcall phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/unclecode/groqcall.
unclecode/groqcall có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho unclecode/groqcall. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
unclecode/groqcall dùng license gì?
unclecode/groqcall phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
unclecode/groqcall là gì?
unclecode/groqcall (unclecode/groqcall) là dự án Python trên GitHub. Theo mô tả gốc: A Function Calls Proxy for Groq, the fastest AI alive!
Đọc đầy đủ README ở tab phía trên.
Chưa chắc groqcall có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về groqcall.