Skip to content

Commit

Permalink
chore: show deprecation notice on re-export (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Oct 11, 2023
1 parent 6484039 commit b176703
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ await openai.models.list({

## Semantic Versioning

This package generally attempts to follow [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:

1. Changes that only affect static types, without breaking runtime behavior.
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals)_.
Expand Down
3 changes: 3 additions & 0 deletions src/resources/chat/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export namespace Chat {
export import ChatCompletionMessage = CompletionsAPI.ChatCompletionMessage;
export import ChatCompletionMessageParam = CompletionsAPI.ChatCompletionMessageParam;
export import ChatCompletionRole = CompletionsAPI.ChatCompletionRole;
/**
* @deprecated ChatCompletionMessageParam should be used instead
*/
export import CreateChatCompletionRequestMessage = CompletionsAPI.CreateChatCompletionRequestMessage;
export import ChatCompletionCreateParams = CompletionsAPI.ChatCompletionCreateParams;
export import CompletionCreateParams = CompletionsAPI.CompletionCreateParams;
Expand Down
3 changes: 3 additions & 0 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ export namespace Completions {
export import ChatCompletionMessage = ChatCompletionsAPI.ChatCompletionMessage;
export import ChatCompletionMessageParam = ChatCompletionsAPI.ChatCompletionMessageParam;
export import ChatCompletionRole = ChatCompletionsAPI.ChatCompletionRole;
/**
* @deprecated ChatCompletionMessageParam should be used instead
*/
export import CreateChatCompletionRequestMessage = ChatCompletionsAPI.CreateChatCompletionRequestMessage;
export import ChatCompletionCreateParams = ChatCompletionsAPI.ChatCompletionCreateParams;
export import CompletionCreateParams = ChatCompletionsAPI.CompletionCreateParams;
Expand Down

0 comments on commit b176703

Please sign in to comment.