chore: change model to mistral

This commit is contained in:
2024-07-09 23:29:24 +02:00
parent 3b9acf6f29
commit 37d983e150
2 changed files with 2 additions and 2 deletions

View File

@@ -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: {

View File

@@ -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}`,