Skip to content

Commit

Permalink
Merge pull request #326 from Nishantjain10/patch-1
Browse files Browse the repository at this point in the history
fix: replace perplexity AI deprecated model
  • Loading branch information
ItzNotABug authored Jan 15, 2025
2 parents 9e3f44b + 72391b2 commit 8d891bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/chat-with-perplexity-ai/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async ({ req, res, error }) => {

try {
const response = await perplexity.chat.completions.create({
model: 'mistral-7b-instruct',
model: 'llama-3.1-sonar-small-128k-online',
max_tokens: parseInt(process.env.PERPLEXITY_MAX_TOKENS ?? '512'),
messages: [{ role: 'user', content: req.bodyJson.prompt }],
stream: false,
Expand Down

0 comments on commit 8d891bb

Please sign in to comment.