Skip to content

Commit 1fcdcec

Browse files
feat(api): manual updates
1 parent 4c47cd0 commit 1fcdcec

File tree

12 files changed

+1129
-386
lines changed

12 files changed

+1129
-386
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 6
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-0a20b2c1a864613083f602f3589f85caa0e39b04c29c0a37db76f6398dfd2f50.yml
3-
openapi_spec_hash: 5c8d07ba17d180b472679f2b85def126
4-
config_hash: d3612805022ba4461f6399145be920d5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-0a0c41e4a1d04f467b380f19330aad7cccfdf3550c269995b6921dfd68615c51.yml
3+
openapi_spec_hash: 030643101899103819c1004f32cafbbc
4+
config_hash: 17c338b2ef0119791bd9f178936b252f

api.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
Types:
44

5-
- <code><a href="./src/resources/shared.ts">ChatChoice</a></code>
6-
- <code><a href="./src/resources/shared.ts">ChatMessage</a></code>
7-
- <code><a href="./src/resources/shared.ts">SearchResult</a></code>
5+
- <code><a href="./src/resources/shared.ts">APIPublicSearchResult</a></code>
6+
- <code><a href="./src/resources/shared.ts">ChatMessageInput</a></code>
7+
- <code><a href="./src/resources/shared.ts">ChatMessageOutput</a></code>
8+
- <code><a href="./src/resources/shared.ts">Choice</a></code>
89
- <code><a href="./src/resources/shared.ts">UsageInfo</a></code>
910

1011
# Chat
@@ -34,8 +35,8 @@ Types:
3435
Methods:
3536

3637
- <code title="post /async/chat/completions">client.async.chat.completions.<a href="./src/resources/async/chat/completions.ts">create</a>({ ...params }) -> CompletionCreateResponse</code>
37-
- <code title="get /async/chat/completions">client.async.chat.completions.<a href="./src/resources/async/chat/completions.ts">list</a>({ ...params }) -> CompletionListResponse</code>
38-
- <code title="get /async/chat/completions/{request_id}">client.async.chat.completions.<a href="./src/resources/async/chat/completions.ts">get</a>(requestID) -> CompletionGetResponse</code>
38+
- <code title="get /async/chat/completions">client.async.chat.completions.<a href="./src/resources/async/chat/completions.ts">list</a>() -> CompletionListResponse</code>
39+
- <code title="get /async/chat/completions/{api_request}">client.async.chat.completions.<a href="./src/resources/async/chat/completions.ts">get</a>(apiRequest, { ...params }) -> CompletionGetResponse</code>
3940

4041
# Search
4142

src/client.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,9 @@ export declare namespace Perplexity {
747747
type ContentCreateParams as ContentCreateParams,
748748
};
749749

750-
export type ChatChoice = API.ChatChoice;
751-
export type ChatMessage = API.ChatMessage;
752-
export type SearchResult = API.SearchResult;
750+
export type APIPublicSearchResult = API.APIPublicSearchResult;
751+
export type ChatMessageInput = API.ChatMessageInput;
752+
export type ChatMessageOutput = API.ChatMessageOutput;
753+
export type Choice = API.Choice;
753754
export type UsageInfo = API.UsageInfo;
754755
}

src/resources/async/chat/chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import * as CompletionsAPI from './completions';
55
import {
66
CompletionCreateParams,
77
CompletionCreateResponse,
8+
CompletionGetParams,
89
CompletionGetResponse,
9-
CompletionListParams,
1010
CompletionListResponse,
1111
Completions,
1212
} from './completions';
@@ -24,6 +24,6 @@ export declare namespace Chat {
2424
type CompletionListResponse as CompletionListResponse,
2525
type CompletionGetResponse as CompletionGetResponse,
2626
type CompletionCreateParams as CompletionCreateParams,
27-
type CompletionListParams as CompletionListParams,
27+
type CompletionGetParams as CompletionGetParams,
2828
};
2929
}

0 commit comments

Comments
 (0)