diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ed21d28..727e2be 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.13.0" + ".": "0.14.0" } diff --git a/.stats.yml b/.stats.yml index 19c4bb4..806d246 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 5 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-335f0ceddae39ba77e5abf8b2b72691a43174b25c2ec897cd7779db8d1524820.yml -openapi_spec_hash: e34fc7a3c97b61c7aded4df4774f298e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-5d4ba4296d72d87995a2189a991e710a77b4b73cc275ad03d8a0eec245cf55db.yml +openapi_spec_hash: 5d29546ef1490dda18cda8ca97cd665e config_hash: 4e2c5b7ad4caa07a2ac1af091ecf6c9c diff --git a/CHANGELOG.md b/CHANGELOG.md index 715ee09..fa36e37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.14.0 (2025-10-30) + +Full Changelog: [v0.13.0...v0.14.0](https://github.com/perplexityai/perplexity-node/compare/v0.13.0...v0.14.0) + +### Features + +* **api:** manual updates ([fffc9eb](https://github.com/perplexityai/perplexity-node/commit/fffc9eb2cfd6db13056bfaa90fd83ab4633e360a)) + ## 0.13.0 (2025-10-29) Full Changelog: [v0.12.0...v0.13.0](https://github.com/perplexityai/perplexity-node/compare/v0.12.0...v0.13.0) diff --git a/package.json b/package.json index 843a886..d1ee1d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@perplexity-ai/perplexity_ai", - "version": "0.13.0", + "version": "0.14.0", "description": "The official TypeScript library for the Perplexity API", "author": "Perplexity ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json index 501b8c2..33f40ea 100644 --- a/packages/mcp-server/package.json +++ b/packages/mcp-server/package.json @@ -1,6 +1,6 @@ { "name": "@perplexity-ai/mcp-server", - "version": "0.13.0", + "version": "0.14.0", "description": "The official MCP Server for the Perplexity API", "author": "Perplexity ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/src/server.ts b/packages/mcp-server/src/server.ts index cd516bd..278c3a8 100644 --- a/packages/mcp-server/src/server.ts +++ b/packages/mcp-server/src/server.ts @@ -32,7 +32,7 @@ export const newMcpServer = () => new McpServer( { name: 'perplexity_ai_perplexity_ai_api', - version: '0.13.0', + version: '0.14.0', }, { capabilities: { tools: {}, logging: {} } }, ); diff --git a/packages/mcp-server/src/tools/chat/completions/create-chat-completions.ts b/packages/mcp-server/src/tools/chat/completions/create-chat-completions.ts index dc7baec..1a5ac38 100644 --- a/packages/mcp-server/src/tools/chat/completions/create-chat-completions.ts +++ b/packages/mcp-server/src/tools/chat/completions/create-chat-completions.ts @@ -65,20 +65,6 @@ export const tool: Tool = { type: 'boolean', title: 'Cum Logprobs', }, - debug_params: { - type: 'object', - title: 'DebugParams', - properties: { - summarizer_model_override: { - type: 'string', - title: 'Summarizer Model Override', - }, - summarizer_prompt_override: { - type: 'string', - title: 'Summarizer Prompt Override', - }, - }, - }, disable_search: { type: 'boolean', title: 'Disable Search', @@ -535,20 +521,6 @@ export const tool: Tool = { type: 'boolean', title: 'Cum Logprobs', }, - debug_params: { - type: 'object', - title: 'DebugParams', - properties: { - summarizer_model_override: { - type: 'string', - title: 'Summarizer Model Override', - }, - summarizer_prompt_override: { - type: 'string', - title: 'Summarizer Prompt Override', - }, - }, - }, disable_search: { type: 'boolean', title: 'Disable Search', @@ -1145,19 +1117,6 @@ export const tool: Tool = { type: 'string', title: 'Thought', }, - type: { - type: 'string', - title: 'Type', - enum: [ - 'web_search', - 'fetch_url_content', - 'execute_python', - 'agent_progress', - 'browser_agent', - 'browser_tool_execution', - 'file_attachment_search', - ], - }, agent_progress: { type: 'object', title: 'AgentProgressStepDetails', @@ -1253,6 +1212,10 @@ export const tool: Tool = { }, required: ['attachment_urls'], }, + type: { + type: 'string', + title: 'Type', + }, web_search: { type: 'object', title: 'WebSearchStepDetails', @@ -1276,7 +1239,7 @@ export const tool: Tool = { required: ['search_keywords', 'search_results'], }, }, - required: ['thought', 'type'], + required: ['thought'], }, }, tool_calls: { diff --git a/src/resources/async/chat/completions.ts b/src/resources/async/chat/completions.ts index 7e8b4cd..7196917 100644 --- a/src/resources/async/chat/completions.ts +++ b/src/resources/async/chat/completions.ts @@ -159,8 +159,6 @@ export namespace CompletionCreateParams { cum_logprobs?: boolean | null; - debug_params?: Request.DebugParams | null; - disable_search?: boolean | null; diverse_first_token?: boolean | null; @@ -263,12 +261,6 @@ export namespace CompletionCreateParams { } export namespace Request { - export interface DebugParams { - summarizer_model_override?: string | null; - - summarizer_prompt_override?: string | null; - } - export interface ResponseFormatText { type: 'text'; } diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index 3b71f44..c2c563a 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -52,8 +52,6 @@ export interface CompletionCreateParamsBase { cum_logprobs?: boolean | null; - debug_params?: CompletionCreateParams.DebugParams | null; - disable_search?: boolean | null; diverse_first_token?: boolean | null; @@ -156,12 +154,6 @@ export interface CompletionCreateParamsBase { } export namespace CompletionCreateParams { - export interface DebugParams { - summarizer_model_override?: string | null; - - summarizer_prompt_override?: string | null; - } - export interface ResponseFormatText { type: 'text'; } diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 7ffd25c..2c58a80 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -102,15 +102,6 @@ export namespace ChatMessageInput { export interface ReasoningStep { thought: string; - type: - | 'web_search' - | 'fetch_url_content' - | 'execute_python' - | 'agent_progress' - | 'browser_agent' - | 'browser_tool_execution' - | 'file_attachment_search'; - /** * Agent progress class for live-browsing updates */ @@ -141,6 +132,8 @@ export namespace ChatMessageInput { */ file_attachment_search?: ReasoningStep.FileAttachmentSearch | null; + type?: string | null; + /** * Web search step details wrapper class */ @@ -311,15 +304,6 @@ export namespace ChatMessageOutput { export interface ReasoningStep { thought: string; - type: - | 'web_search' - | 'fetch_url_content' - | 'execute_python' - | 'agent_progress' - | 'browser_agent' - | 'browser_tool_execution' - | 'file_attachment_search'; - /** * Agent progress class for live-browsing updates */ @@ -350,6 +334,8 @@ export namespace ChatMessageOutput { */ file_attachment_search?: ReasoningStep.FileAttachmentSearch | null; + type?: string | null; + /** * Web search step details wrapper class */ diff --git a/src/version.ts b/src/version.ts index 9d013cc..e2b0672 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.13.0'; // x-release-please-version +export const VERSION = '0.14.0'; // x-release-please-version diff --git a/tests/api-resources/async/chat/completions.test.ts b/tests/api-resources/async/chat/completions.test.ts index 2a67f62..7093c00 100644 --- a/tests/api-resources/async/chat/completions.test.ts +++ b/tests/api-resources/async/chat/completions.test.ts @@ -33,7 +33,6 @@ describe('resource completions', () => { reasoning_steps: [ { thought: 'thought', - type: 'web_search', agent_progress: { action: 'action', screenshot: 'screenshot', url: 'url' }, browser_agent: { result: 'result', url: 'url' }, browser_tool_execution: { tool: { foo: 'bar' } }, @@ -51,6 +50,7 @@ describe('resource completions', () => { ], }, file_attachment_search: { attachment_urls: ['string'] }, + type: 'type', web_search: { search_keywords: ['string'], search_results: [ @@ -77,10 +77,6 @@ describe('resource completions', () => { best_of: 0, country: 'country', cum_logprobs: true, - debug_params: { - summarizer_model_override: 'summarizer_model_override', - summarizer_prompt_override: 'summarizer_prompt_override', - }, disable_search: true, diverse_first_token: true, enable_search_classifier: true, diff --git a/tests/api-resources/chat/completions.test.ts b/tests/api-resources/chat/completions.test.ts index 350ef7b..b3a8086 100644 --- a/tests/api-resources/chat/completions.test.ts +++ b/tests/api-resources/chat/completions.test.ts @@ -33,7 +33,6 @@ describe('resource completions', () => { reasoning_steps: [ { thought: 'thought', - type: 'web_search', agent_progress: { action: 'action', screenshot: 'screenshot', url: 'url' }, browser_agent: { result: 'result', url: 'url' }, browser_tool_execution: { tool: { foo: 'bar' } }, @@ -51,6 +50,7 @@ describe('resource completions', () => { ], }, file_attachment_search: { attachment_urls: ['string'] }, + type: 'type', web_search: { search_keywords: ['string'], search_results: [ @@ -77,10 +77,6 @@ describe('resource completions', () => { best_of: 0, country: 'country', cum_logprobs: true, - debug_params: { - summarizer_model_override: 'summarizer_model_override', - summarizer_prompt_override: 'summarizer_prompt_override', - }, disable_search: true, diverse_first_token: true, enable_search_classifier: true,