Skip to content

Commit fffc9eb

Browse files
feat(api): manual updates
1 parent c77312b commit fffc9eb

File tree

7 files changed

+13
-88
lines changed

7 files changed

+13
-88
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-335f0ceddae39ba77e5abf8b2b72691a43174b25c2ec897cd7779db8d1524820.yml
3-
openapi_spec_hash: e34fc7a3c97b61c7aded4df4774f298e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-5d4ba4296d72d87995a2189a991e710a77b4b73cc275ad03d8a0eec245cf55db.yml
3+
openapi_spec_hash: 5d29546ef1490dda18cda8ca97cd665e
44
config_hash: 4e2c5b7ad4caa07a2ac1af091ecf6c9c

packages/mcp-server/src/tools/chat/completions/create-chat-completions.ts

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,6 @@ export const tool: Tool = {
6565
type: 'boolean',
6666
title: 'Cum Logprobs',
6767
},
68-
debug_params: {
69-
type: 'object',
70-
title: 'DebugParams',
71-
properties: {
72-
summarizer_model_override: {
73-
type: 'string',
74-
title: 'Summarizer Model Override',
75-
},
76-
summarizer_prompt_override: {
77-
type: 'string',
78-
title: 'Summarizer Prompt Override',
79-
},
80-
},
81-
},
8268
disable_search: {
8369
type: 'boolean',
8470
title: 'Disable Search',
@@ -535,20 +521,6 @@ export const tool: Tool = {
535521
type: 'boolean',
536522
title: 'Cum Logprobs',
537523
},
538-
debug_params: {
539-
type: 'object',
540-
title: 'DebugParams',
541-
properties: {
542-
summarizer_model_override: {
543-
type: 'string',
544-
title: 'Summarizer Model Override',
545-
},
546-
summarizer_prompt_override: {
547-
type: 'string',
548-
title: 'Summarizer Prompt Override',
549-
},
550-
},
551-
},
552524
disable_search: {
553525
type: 'boolean',
554526
title: 'Disable Search',
@@ -1145,19 +1117,6 @@ export const tool: Tool = {
11451117
type: 'string',
11461118
title: 'Thought',
11471119
},
1148-
type: {
1149-
type: 'string',
1150-
title: 'Type',
1151-
enum: [
1152-
'web_search',
1153-
'fetch_url_content',
1154-
'execute_python',
1155-
'agent_progress',
1156-
'browser_agent',
1157-
'browser_tool_execution',
1158-
'file_attachment_search',
1159-
],
1160-
},
11611120
agent_progress: {
11621121
type: 'object',
11631122
title: 'AgentProgressStepDetails',
@@ -1253,6 +1212,10 @@ export const tool: Tool = {
12531212
},
12541213
required: ['attachment_urls'],
12551214
},
1215+
type: {
1216+
type: 'string',
1217+
title: 'Type',
1218+
},
12561219
web_search: {
12571220
type: 'object',
12581221
title: 'WebSearchStepDetails',
@@ -1276,7 +1239,7 @@ export const tool: Tool = {
12761239
required: ['search_keywords', 'search_results'],
12771240
},
12781241
},
1279-
required: ['thought', 'type'],
1242+
required: ['thought'],
12801243
},
12811244
},
12821245
tool_calls: {

src/resources/async/chat/completions.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ export namespace CompletionCreateParams {
159159

160160
cum_logprobs?: boolean | null;
161161

162-
debug_params?: Request.DebugParams | null;
163-
164162
disable_search?: boolean | null;
165163

166164
diverse_first_token?: boolean | null;
@@ -263,12 +261,6 @@ export namespace CompletionCreateParams {
263261
}
264262

265263
export namespace Request {
266-
export interface DebugParams {
267-
summarizer_model_override?: string | null;
268-
269-
summarizer_prompt_override?: string | null;
270-
}
271-
272264
export interface ResponseFormatText {
273265
type: 'text';
274266
}

src/resources/chat/completions.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ export interface CompletionCreateParamsBase {
5252

5353
cum_logprobs?: boolean | null;
5454

55-
debug_params?: CompletionCreateParams.DebugParams | null;
56-
5755
disable_search?: boolean | null;
5856

5957
diverse_first_token?: boolean | null;
@@ -156,12 +154,6 @@ export interface CompletionCreateParamsBase {
156154
}
157155

158156
export namespace CompletionCreateParams {
159-
export interface DebugParams {
160-
summarizer_model_override?: string | null;
161-
162-
summarizer_prompt_override?: string | null;
163-
}
164-
165157
export interface ResponseFormatText {
166158
type: 'text';
167159
}

src/resources/shared.ts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,6 @@ export namespace ChatMessageInput {
102102
export interface ReasoningStep {
103103
thought: string;
104104

105-
type:
106-
| 'web_search'
107-
| 'fetch_url_content'
108-
| 'execute_python'
109-
| 'agent_progress'
110-
| 'browser_agent'
111-
| 'browser_tool_execution'
112-
| 'file_attachment_search';
113-
114105
/**
115106
* Agent progress class for live-browsing updates
116107
*/
@@ -141,6 +132,8 @@ export namespace ChatMessageInput {
141132
*/
142133
file_attachment_search?: ReasoningStep.FileAttachmentSearch | null;
143134

135+
type?: string | null;
136+
144137
/**
145138
* Web search step details wrapper class
146139
*/
@@ -311,15 +304,6 @@ export namespace ChatMessageOutput {
311304
export interface ReasoningStep {
312305
thought: string;
313306

314-
type:
315-
| 'web_search'
316-
| 'fetch_url_content'
317-
| 'execute_python'
318-
| 'agent_progress'
319-
| 'browser_agent'
320-
| 'browser_tool_execution'
321-
| 'file_attachment_search';
322-
323307
/**
324308
* Agent progress class for live-browsing updates
325309
*/
@@ -350,6 +334,8 @@ export namespace ChatMessageOutput {
350334
*/
351335
file_attachment_search?: ReasoningStep.FileAttachmentSearch | null;
352336

337+
type?: string | null;
338+
353339
/**
354340
* Web search step details wrapper class
355341
*/

tests/api-resources/async/chat/completions.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ describe('resource completions', () => {
3333
reasoning_steps: [
3434
{
3535
thought: 'thought',
36-
type: 'web_search',
3736
agent_progress: { action: 'action', screenshot: 'screenshot', url: 'url' },
3837
browser_agent: { result: 'result', url: 'url' },
3938
browser_tool_execution: { tool: { foo: 'bar' } },
@@ -51,6 +50,7 @@ describe('resource completions', () => {
5150
],
5251
},
5352
file_attachment_search: { attachment_urls: ['string'] },
53+
type: 'type',
5454
web_search: {
5555
search_keywords: ['string'],
5656
search_results: [
@@ -77,10 +77,6 @@ describe('resource completions', () => {
7777
best_of: 0,
7878
country: 'country',
7979
cum_logprobs: true,
80-
debug_params: {
81-
summarizer_model_override: 'summarizer_model_override',
82-
summarizer_prompt_override: 'summarizer_prompt_override',
83-
},
8480
disable_search: true,
8581
diverse_first_token: true,
8682
enable_search_classifier: true,

tests/api-resources/chat/completions.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ describe('resource completions', () => {
3333
reasoning_steps: [
3434
{
3535
thought: 'thought',
36-
type: 'web_search',
3736
agent_progress: { action: 'action', screenshot: 'screenshot', url: 'url' },
3837
browser_agent: { result: 'result', url: 'url' },
3938
browser_tool_execution: { tool: { foo: 'bar' } },
@@ -51,6 +50,7 @@ describe('resource completions', () => {
5150
],
5251
},
5352
file_attachment_search: { attachment_urls: ['string'] },
53+
type: 'type',
5454
web_search: {
5555
search_keywords: ['string'],
5656
search_results: [
@@ -77,10 +77,6 @@ describe('resource completions', () => {
7777
best_of: 0,
7878
country: 'country',
7979
cum_logprobs: true,
80-
debug_params: {
81-
summarizer_model_override: 'summarizer_model_override',
82-
summarizer_prompt_override: 'summarizer_prompt_override',
83-
},
8480
disable_search: true,
8581
diverse_first_token: true,
8682
enable_search_classifier: true,

0 commit comments

Comments
 (0)