fix(Perplexity Node): Update model from 'r1-1776' to 'sonar' in API and tests (#19440)

This commit is contained in:
jabbson
2025-09-15 04:53:43 -04:00
committed by GitHub
parent 66e3f2b639
commit 2ed407850a
5 changed files with 7 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ describe('Perplexity Node - Chat Completions', () => {
nock('https://api.perplexity.ai')
.post('/chat/completions', (body) => {
return (
body?.model?.value === 'r1-1776' &&
body?.model?.value === 'sonar' &&
body?.model?.mode === 'id' &&
Array.isArray(body?.messages) &&
body.messages.length === 3 &&
@@ -25,7 +25,7 @@ describe('Perplexity Node - Chat Completions', () => {
})
.reply(200, {
id: '6bb24c98-3071-4691-9a7b-dc4bc18c3c2c',
model: 'r1-1776',
model: 'sonar',
created: 1743161086,
object: 'chat.completion',
usage: {