Skip to content

Commit

Permalink
Python: Bump Python version to 1.16.0 for a release. (#9781)
Browse files Browse the repository at this point in the history
### Motivation and Context

Bump Python version to 1.16.0 for a release.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

Bump Python version to 1.16.0 for a release. Includes feature work to
promote OpenAPI plugin to preview from experimental.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄

---------

Co-authored-by: Tao Chen <[email protected]>
  • Loading branch information
moonbox3 and TaoChenOSU authored Nov 21, 2024
1 parent d8acb75 commit 05f9a98
Show file tree
Hide file tree
Showing 6 changed files with 482 additions and 454 deletions.
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
dependencies = [
"aiohttp ~= 3.8",
"cloudevents ~=1.0",
"pydantic ~= 2.0",
"pydantic ~= 2.0<2.10",
"pydantic-settings ~= 2.0",
"defusedxml ~= 0.7",
# azure identity
Expand Down
2 changes: 1 addition & 1 deletion python/semantic_kernel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

from semantic_kernel.kernel import Kernel

__version__ = "1.15.0"
__version__ = "1.16.0"
__all__ = ["Kernel", "__version__"]
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ class OpenAIAssistantBase(Agent):
enable_code_interpreter: bool | None = Field(False)
enable_file_search: bool | None = Field(False)
enable_json_response: bool | None = Field(False)
code_interpreter_file_ids: list[str] | None = Field(default_factory=list, max_length=20)
file_search_file_ids: list[str] | None = Field(default_factory=list, max_length=20)
code_interpreter_file_ids: list[str] | None = Field(default_factory=list, max_length=20) # type: ignore
file_search_file_ids: list[str] | None = Field(default_factory=list, max_length=20) # type: ignore
temperature: float | None = Field(None)
top_p: float | None = Field(None)
vector_store_id: str | None = None
metadata: dict[str, Any] | None = Field(default_factory=dict, max_length=16)
metadata: dict[str, Any] | None = Field(default_factory=dict, max_length=16) # type: ignore
max_completion_tokens: int | None = Field(None)
max_prompt_tokens: int | None = Field(None)
parallel_tool_calls_enabled: bool | None = Field(True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ class StreamingAnnotationContent(KernelContent):
"""Streaming Annotation content."""

content_type: Literal[ContentTypes.STREAMING_ANNOTATION_CONTENT] = Field(
STREAMING_ANNOTATION_CONTENT_TAG, init=False
) # type: ignore
STREAMING_ANNOTATION_CONTENT_TAG, # type: ignore
init=False,
)
tag: ClassVar[str] = STREAMING_ANNOTATION_CONTENT_TAG
file_id: str | None = None
quote: str | None = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ class StreamingFileReferenceContent(KernelContent):
"""Streaming File reference content."""

content_type: Literal[ContentTypes.STREAMING_FILE_REFERENCE_CONTENT] = Field(
STREAMING_FILE_REFERENCE_CONTENT_TAG, init=False
) # type: ignore
STREAMING_FILE_REFERENCE_CONTENT_TAG, # type: ignore
init=False,
)
tag: ClassVar[str] = STREAMING_FILE_REFERENCE_CONTENT_TAG
file_id: str | None = None

Expand Down
Loading

0 comments on commit 05f9a98

Please sign in to comment.