Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 0.3.14 #152

Merged
merged 19 commits into from
Oct 11, 2023
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
1f98257
docs: add some missing inline documentation (#151)
stainless-bot Sep 13, 2023
9cac11b
ci: add workflow to handle release PR edit (#153)
stainless-bot Sep 14, 2023
da6ccb1
fix(client): properly configure model set fields (#154)
stainless-bot Sep 14, 2023
46386f8
feat(client): retry on 408 Request Timeout (#155)
stainless-bot Sep 14, 2023
00f5a19
chore(internal): add helpers (#156)
stainless-bot Sep 14, 2023
59fe4e3
ci: configure release PR title (#158)
stainless-bot Sep 15, 2023
e22f0e7
ci: fix handle-release-pr-title-edit workflow (#159)
stainless-bot Sep 15, 2023
43544a6
feat(types): improve params type names (#160)
stainless-bot Sep 19, 2023
76cfcf9
fix(client): don't error by default for unexpected content types (#161)
stainless-bot Sep 22, 2023
329b307
chore(internal): move error classes from _base_exceptions to _excepti…
stainless-bot Sep 22, 2023
e7aa3e7
feat(package): export a root error type (#163)
stainless-bot Sep 25, 2023
8042473
chore(tests): improve raw response test (#166)
stainless-bot Sep 27, 2023
bb7d129
ci: only run workflow handle-release-pr-title-edit for release PRs (#…
stainless-bot Oct 2, 2023
afeabf1
feat(client): handle retry-after header with a date format (#168)
stainless-bot Oct 2, 2023
b472605
test: rename `API_BASE_URL` to `TEST_API_BASE_URL` (#169)
stainless-bot Oct 2, 2023
4c5289e
feat(client): add forwards-compatible pydantic methods (#171)
stainless-bot Oct 9, 2023
351095b
docs: update readme (#172)
stainless-bot Oct 11, 2023
25046c4
feat(client): add support for passing in a httpx client (#173)
stainless-bot Oct 11, 2023
432a3ac
release: 0.3.14
stainless-bot Oct 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(types): improve params type names (#160)
stainless-bot authored Sep 19, 2023
commit 43544a62c8410061c1a50282f4c45d029db7779b
18 changes: 13 additions & 5 deletions src/anthropic/types/completion_create_params.py
Original file line number Diff line number Diff line change
@@ -8,10 +8,12 @@
__all__ = [
"CompletionRequestStreamingMetadata",
"CompletionRequestNonStreamingMetadata",
"CompletionCreateParamsBase",
"Metadata",
"CompletionRequestNonStreaming",
"CompletionRequestStreaming",
"CompletionCreateParamsBase",
"Metadata",
"CompletionCreateParamsNonStreaming",
"CompletionCreateParamsStreaming",
]


@@ -94,7 +96,7 @@ class Metadata(TypedDict, total=False):
"""


class CompletionRequestNonStreaming(CompletionCreateParamsBase):
class CompletionCreateParamsNonStreaming(CompletionCreateParamsBase):
stream: Literal[False]
"""Whether to incrementally stream the response using server-sent events.
@@ -104,7 +106,7 @@ class CompletionRequestNonStreaming(CompletionCreateParamsBase):
"""


class CompletionRequestStreaming(CompletionCreateParamsBase):
class CompletionCreateParamsStreaming(CompletionCreateParamsBase):
stream: Required[Literal[True]]
"""Whether to incrementally stream the response using server-sent events.
@@ -120,4 +122,10 @@ class CompletionRequestStreaming(CompletionCreateParamsBase):
CompletionRequestNonStreamingMetadata = Metadata
"""This is deprecated, `Metadata` should be used instead"""

CompletionCreateParams = Union[CompletionRequestNonStreaming, CompletionRequestStreaming]
CompletionRequestNonStreaming = CompletionCreateParamsNonStreaming
"""This is deprecated, `CompletionCreateParamsNonStreaming` should be used instead"""

CompletionRequestStreaming = CompletionCreateParamsStreaming
"""This is deprecated, `CompletionCreateParamsStreaming` should be used instead"""

CompletionCreateParams = Union[CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming]