Spaces:
Paused
Paused
Download plugins/groq.js from levantermd/lyfe1: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/groq.js
- Command line
-
hf download hf://spaces/levantermd/lyfe1/plugins/groq.js
-
curl -L -o groq.js https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/groq.js
459 Bytes
| const { bot, groqResponse } = require('../lib') | |
| bot( | |
| { | |
| pattern: 'groq ?(.*)', | |
| desc: 'groq ai', | |
| type: 'AI', | |
| }, | |
| async (message, match) => { | |
| if (!match) | |
| return await message.send( | |
| '*Example :* groq Hi\n\nYou can set GROQ_API_KEY, GROQ_MODEL, and GROQ_SYSTEM_MSG, which are optional.\nhttps://console.groq.com/keys' | |
| ) | |
| const res = await groqResponse(match) | |
| await message.send(res, { quoted: message.data }) | |
| } | |
| ) | |