Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: anthropics/anthropic-sdk-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 74115d793e628ece2c0973389eefc8a6252058cd
Choose a base ref
..
head repository: anthropics/anthropic-sdk-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 43544a62c8410061c1a50282f4c45d029db7779b
Choose a head ref
Showing with 18 additions and 33 deletions.
  1. +2 −2 .github/workflows/handle-release-pr-title-edit.yml
  2. +1 −1 .release-please-manifest.json
  3. +0 −23 CHANGELOG.md
  4. +1 −1 pyproject.toml
  5. +1 −1 src/anthropic/_version.py
  6. +13 −5 src/anthropic/types/completion_create_params.py
4 changes: 2 additions & 2 deletions .github/workflows/handle-release-pr-title-edit.yml
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@ jobs:
update_pr_content:
name: Update pull request content
if: |
(github.event.type == 'edited' && github.event.changes.title.from != github.event.pull_request.title) ||
(github.event.type == 'unlabeled' && github.event.label.name == 'autorelease: custom version') &&
(github.event.action == 'edited' && github.event.changes.title.from != github.event.pull_request.title) ||
(github.event.action == 'unlabeled' && github.event.label.name == 'autorelease: custom version') &&
github.event.pull_request.state == 'open' &&
github.event.sender.login != 'stainless-bot' &&
github.repository == 'anthropics/anthropic-sdk-python'
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.3.14"
".": "0.3.13"
}
23 changes: 0 additions & 23 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
# Changelog

## 0.3.14 (2023-09-15)

Full Changelog: [v0.3.13...v0.3.14](https://github.com/anthropics/anthropic-sdk-python/compare/v0.3.13...v0.3.14)

### Features

* **client:** retry on 408 Request Timeout ([#155](https://github.com/anthropics/anthropic-sdk-python/issues/155)) ([46386f8](https://github.com/anthropics/anthropic-sdk-python/commit/46386f8f60223f45bc133ddfcfda8d9ca9da26a8))


### Bug Fixes

* **client:** properly configure model set fields ([#154](https://github.com/anthropics/anthropic-sdk-python/issues/154)) ([da6ccb1](https://github.com/anthropics/anthropic-sdk-python/commit/da6ccb10a38e862153871a540cb75af0afdaefb3))


### Chores

* **internal:** add helpers ([#156](https://github.com/anthropics/anthropic-sdk-python/issues/156)) ([00f5a19](https://github.com/anthropics/anthropic-sdk-python/commit/00f5a19c9393f6238759faea40405e60b2054da3))


### Documentation

* add some missing inline documentation ([#151](https://github.com/anthropics/anthropic-sdk-python/issues/151)) ([1f98257](https://github.com/anthropics/anthropic-sdk-python/commit/1f9825775d58ed8a62b000caaddd622ed4ba3fd2))

## 0.3.13 (2023-09-11)

Full Changelog: [v0.3.12...v0.3.13](https://github.com/anthropics/anthropic-sdk-python/compare/v0.3.12...v0.3.13)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "anthropic"
version = "0.3.14"
version = "0.3.13"
description = "Client library for the anthropic API"
readme = "README.md"
authors = ["Anthropic <support@anthropic.com>"]
2 changes: 1 addition & 1 deletion src/anthropic/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.

__title__ = "anthropic"
__version__ = "0.3.14" # x-release-please-version
__version__ = "0.3.13" # x-release-please-version
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]