Skip to content

Commit a9899b6

Browse files
stainless-botmegamanics
authored andcommitted
release: 1.16.1 (openai#1292)
* chore(internal): defer model build for import latency (openai#1291) * release: 1.16.1
1 parent f3d0702 commit a9899b6

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

Diff for: .release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.16.0"
2+
".": "1.16.1"
33
}

Diff for: CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.16.1 (2024-04-02)
4+
5+
Full Changelog: [v1.16.0...v1.16.1](https://github.com/openai/openai-python/compare/v1.16.0...v1.16.1)
6+
7+
### Chores
8+
9+
* **internal:** defer model build for import latency ([#1291](https://github.com/openai/openai-python/issues/1291)) ([bc6866e](https://github.com/openai/openai-python/commit/bc6866eb2335d01532190d0906cad7bf9af28621))
10+
311
## 1.16.0 (2024-04-01)
412

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

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openai"
3-
version = "1.16.0"
3+
version = "1.16.1"
44
description = "The official Python library for the openai API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

Diff for: src/openai/_models.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import os
34
import inspect
45
from typing import TYPE_CHECKING, Any, Type, Union, Generic, TypeVar, Callable, cast
56
from datetime import date, datetime
@@ -38,6 +39,7 @@
3839
is_given,
3940
is_mapping,
4041
parse_date,
42+
coerce_boolean,
4143
parse_datetime,
4244
strip_not_given,
4345
extract_type_arg,
@@ -74,7 +76,9 @@ class _ConfigProtocol(Protocol):
7476

7577
class BaseModel(pydantic.BaseModel):
7678
if PYDANTIC_V2:
77-
model_config: ClassVar[ConfigDict] = ConfigDict(extra="allow")
79+
model_config: ClassVar[ConfigDict] = ConfigDict(
80+
extra="allow", defer_build=coerce_boolean(os.environ.get("DEFER_PYDANTIC_BUILD", "true"))
81+
)
7882
else:
7983

8084
@property

Diff for: src/openai/_version.py

+1-1
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.16.0" # x-release-please-version
4+
__version__ = "1.16.1" # x-release-please-version

0 commit comments

Comments
 (0)