-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Groq compatibility? #136
Comments
For me adding the groq provider works. Example :
|
Can't work on my nvim. |
@yuukibarns could you provide your gp configuration, outputs from Just be careful not to paste your secrets. |
The error msg is .html format which is hard to read, so i ignored it before. |
Why have I been blocked?This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solu tion. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data. |
And it told me that |
@yuukibarns the message is from ClaudFlare, can't provide more help without config and GpInspect data. |
{
"robitx/gp.nvim",
config = function()
local conf = {
providers = {
groq = {
disable = false,
endpoint = "https://api.groq.com/openai/v1/chat/completions",
secret = os.getenv("GROQ_API_KEY"),
},
openai = {
disable = true,
endpoint = "https://api.openai.com/v1/chat/completions",
-- secret = os.getenv("OPENAI_API_KEY"),
},
},
agents = {
{
name = "ChatGroqLlama3.1-70B",
provider = "groq",
chat = true,
command = false,
-- string with model name or table with model name and parameters
model = {
model = "llama-3.1-70b-versatile",
temperature = 0.6,
top_p = 1,
min_p = 0.05,
},
system_prompt = require("gp.defaults").chat_system_prompt,
},
{
name = "CodeGroqLlama3.1-70B",
provider = "groq",
chat = false,
command = true,
model = {
model = "llama-3.1-70b-versatile",
temperature = 0.4,
top_p = 1,
min_p = 0.05,
},
system_prompt = require("gp.defaults").code_system_prompt,
},
},
}
require("gp").setup(conf)
-- Setup shortcuts here (see Usage > Shortcuts in the Documentation/Readme)
end,
}, |
Plugin structure: |
@yuukibarns yep, sadly looks like a geo fence issue 🙁 groq/groq-python#32 I've had similar troubles with gemini in EU, if you can get some proxy to fake your location to US you could use -- optional curl parameters (for proxy, etc.)
-- curl_params = { "--proxy", "https://X.X.X.X:XXXX" }
curl_params = {}, |
Thanks for your analysis. |
Hi, I access
llama3-70b
through groq using this python tool. I was hoping to also use groq with gp.nvim. Any plans to support this?The text was updated successfully, but these errors were encountered: