You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localOPENAI_KEY=env.OPENAI_KEYlocalGROQ_KEY=env.GROQ_KEYlocalOPENAI_HOST="https://api.openai.com/v1/chat/completions"localGROQ_HOST="https://api.groq.com/openai/v1/chat/completions"localGROQ_AUDIO="https://api.groq.com/openai/v1/audio/transcriptions"localconfig= {
providers= {
openai= {
disable=false,
endpoint=OPENAI_HOST,
secret=OPENAI_KEY,
},
groq= {
disable=false,
endpoint=GROQ_HOST,
secret=GROQ_KEY,
},
},
chat_shortcut_respond= { modes= { "n", "i", "v", "x" }, shortcut="<C-g><cr>" },
chat_confirm_delete=false,
-- prefix for all commandscmd_prefix="Gp",
default_chat_agent="GroqLLAMA_8B",
whisper= {
-- -- TODO: In the future, when gpnvim will support whisper optionsendpoint=GROQ_AUDIO,
secret=GROQ_KEY,
},
agents= {
{
provider="openai",
name="ChatGPT4o",
chat=false,
command=true,
-- string with model name or table with model name and parametersmodel= { model="gpt-4o", temperature=0.8, top_p=1 },
-- system prompt (use this to specify the persona/role of the AI)system_prompt="You are an AI working as a code editor.\n\n".."Please AVOID COMMENTARY OUTSIDE OF THE SNIPPET RESPONSE.\n".."START AND END YOUR ANSWER WITH:\n\n```",
},
{
provider="openai",
name="ChatGPT4o-mini",
chat=true,
command=true,
-- string with model name or table with model name and parametersmodel= { model="gpt-4o-mini", temperature=0.8, top_p=1 },
-- system prompt (use this to specify the persona/role of the AI)system_prompt="You are an AI working as a code editor.\n\n".."Please AVOID COMMENTARY OUTSIDE OF THE SNIPPET RESPONSE.\n".."START AND END YOUR ANSWER WITH:\n\n```",
},
{
provider="groq",
name="GroqLLAMA_8B",
chat=true,
command=true,
-- string with model name or table with model name and parametersmodel= { model="llama-3.1-70b-versatile", temperature=0.8, top_p=1 },
system_prompt="You are an AI helping the user with code and other tasks\n\n".."Please AVOID COMMENTARY OUTSIDE OF THE SNIPPET RESPONSE.\n",
},
{
provider="groq",
name="GroqLLAMA_8B",
chat=true,
command=true,
-- string with model name or table with model name and parametersmodel= { model="llama-3.2-11b-text-preview", temperature=0.8, top_p=1 },
system_prompt="Given a task or problem, please provide a concise and well-formatted solution or answer.\n\n".."Please keep your response within a code snippet, and avoid unnecessary commentary.\n",
},
},
}
The text was updated successfully, but these errors were encountered:
What is the issue?
Error that shows up:
Error in text:
Relevant resources:
My config for reference:
The text was updated successfully, but these errors were encountered: