mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-05 16:57:01 +00:00
chore: change model to mistral
This commit is contained in:
@@ -65,7 +65,7 @@ export default discordEvent({
|
||||
await sentMsg.edit({ content: msg });
|
||||
messages.push({ role: 'assistant', content: msg });
|
||||
const titleResponse = await fetch(
|
||||
`https://api.cloudflare.com/client/v4/accounts/${process.env.CF_AI_ACC}/ai/run/@cf/meta/llama-3-8b-instruct`,
|
||||
`https://api.cloudflare.com/client/v4/accounts/${process.env.CF_AI_ACC}/ai/run/@hf/mistral/mistral-7b-instruct-v0.2`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
||||
@@ -35,7 +35,7 @@ export default discordEvent({
|
||||
return
|
||||
}
|
||||
}, 1000)
|
||||
fetchEventSource(`https://api.cloudflare.com/client/v4/accounts/${process.env.CF_AI_ACC}/ai/run/@cf/meta/llama-3-8b-instruct`, {
|
||||
fetchEventSource(`https://api.cloudflare.com/client/v4/accounts/${process.env.CF_AI_ACC}/ai/run/@hf/mistral/mistral-7b-instruct-v0.2`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': `Bearer ${process.env.CF_AI_TOKEN}`,
|
||||
|
||||
Reference in New Issue
Block a user