File: replace-jiter.patch

package info (click to toggle)
python-openai 1.99.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,784 kB
  • sloc: python: 57,274; sh: 140; makefile: 7
file content (16 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: replace jiter with pydantic_core to avoid more dependency
Forward: do not forward
Reference: https://github.com/openai/openai-python/issues/1616
Index: python-openai/src/openai/lib/streaming/chat/_completions.py
===================================================================
--- python-openai.orig/src/openai/lib/streaming/chat/_completions.py	2024-10-07 05:34:07.337885792 +0000
+++ python-openai/src/openai/lib/streaming/chat/_completions.py	2024-10-07 05:34:07.273887749 +0000
@@ -5,7 +5,7 @@
 from typing import TYPE_CHECKING, Any, Generic, Callable, Iterable, Awaitable, AsyncIterator, cast
 from typing_extensions import Self, Iterator, assert_never
 
-from jiter import from_json
+from pydantic_core import from_json
 
 from ._types import ParsedChoiceSnapshot, ParsedChatCompletionSnapshot, ParsedChatCompletionMessageSnapshot
 from ._events import (