Skip to content

Commit

Permalink
chore: change model to mistral
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Jul 9, 2024
1 parent 3b9acf6 commit 37d983e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion events/chatgptMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion events/chatgptThread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 37d983e

Please sign in to comment.