Skip to content

Commit a3315d9

Browse files
release: 1.98.0 (#2503)
* feat(api): manual updates * release: 1.98.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 48188cc commit a3315d9

16 files changed

+371
-55
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.97.2"
2+
".": "1.98.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-b2a451656ca64d30d174391ebfd94806b4de3ab76dc55b92843cfb7f1a54ecb6.yml
3-
openapi_spec_hash: 27d9691b400f28c17ef063a1374048b0
4-
config_hash: e822d0c9082c8b312264403949243179
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-721e6ccaa72205ee14c71f8163129920464fb814b95d3df9567a9476bbd9b7fb.yml
3+
openapi_spec_hash: 2115413a21df8b5bf9e4552a74df4312
4+
config_hash: 9606bb315a193bfd8da0459040143242

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.98.0 (2025-07-30)
4+
5+
Full Changelog: [v1.97.2...v1.98.0](https://github.com/openai/openai-python/compare/v1.97.2...v1.98.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([88a8036](https://github.com/openai/openai-python/commit/88a8036c5ea186f36c57029ef4501a0833596f56))
10+
311
## 1.97.2 (2025-07-30)
412

513
Full Changelog: [v1.97.1...v1.97.2](https://github.com/openai/openai-python/compare/v1.97.1...v1.97.2)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openai"
3-
version = "1.97.2"
3+
version = "1.98.0"
44
description = "The official Python library for the openai API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/openai/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "openai"
4-
__version__ = "1.97.2" # x-release-please-version
4+
__version__ = "1.98.0" # x-release-please-version

src/openai/resources/chat/completions/completions.py

Lines changed: 110 additions & 18 deletions
Large diffs are not rendered by default.

src/openai/resources/responses/responses.py

Lines changed: 110 additions & 18 deletions
Large diffs are not rendered by default.

src/openai/types/chat/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
from .chat_completion_store_message import ChatCompletionStoreMessage as ChatCompletionStoreMessage
2929
from .chat_completion_token_logprob import ChatCompletionTokenLogprob as ChatCompletionTokenLogprob
3030
from .chat_completion_reasoning_effort import ChatCompletionReasoningEffort as ChatCompletionReasoningEffort
31+
from .chat_completion_content_part_text import ChatCompletionContentPartText as ChatCompletionContentPartText
3132
from .chat_completion_message_tool_call import ChatCompletionMessageToolCall as ChatCompletionMessageToolCall
33+
from .chat_completion_content_part_image import ChatCompletionContentPartImage as ChatCompletionContentPartImage
3234
from .chat_completion_content_part_param import ChatCompletionContentPartParam as ChatCompletionContentPartParam
3335
from .chat_completion_tool_message_param import ChatCompletionToolMessageParam as ChatCompletionToolMessageParam
3436
from .chat_completion_user_message_param import ChatCompletionUserMessageParam as ChatCompletionUserMessageParam
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import Optional
4+
from typing_extensions import Literal
5+
6+
from ..._models import BaseModel
7+
8+
__all__ = ["ChatCompletionContentPartImage", "ImageURL"]
9+
10+
11+
class ImageURL(BaseModel):
12+
url: str
13+
"""Either a URL of the image or the base64 encoded image data."""
14+
15+
detail: Optional[Literal["auto", "low", "high"]] = None
16+
"""Specifies the detail level of the image.
17+
18+
Learn more in the
19+
[Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding).
20+
"""
21+
22+
23+
class ChatCompletionContentPartImage(BaseModel):
24+
image_url: ImageURL
25+
26+
type: Literal["image_url"]
27+
"""The type of the content part."""
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing_extensions import Literal
4+
5+
from ..._models import BaseModel
6+
7+
__all__ = ["ChatCompletionContentPartText"]
8+
9+
10+
class ChatCompletionContentPartText(BaseModel):
11+
text: str
12+
"""The text content."""
13+
14+
type: Literal["text"]
15+
"""The type of the content part."""

0 commit comments

Comments
 (0)