Skip to content

Commit 0a36481

Browse files
committed
1 parent b06d0d3 commit 0a36481

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pkgs/development/python-modules/openai/default.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
numpy,
2222
pandas,
2323
pandas-stubs,
24+
websockets,
2425

2526
# check deps
2627
pytestCheckHook,
@@ -35,7 +36,7 @@
3536

3637
buildPythonPackage rec {
3738
pname = "openai";
38-
version = "1.57.4";
39+
version = "1.58.1";
3940
pyproject = true;
4041

4142
disabled = pythonOlder "3.8";
@@ -44,7 +45,7 @@ buildPythonPackage rec {
4445
owner = "openai";
4546
repo = "openai-python";
4647
rev = "refs/tags/v${version}";
47-
hash = "sha256-djYvHEIieJPak8EY7c5hhMhTzxm/Prc4RSfrFjzHqI4=";
48+
hash = "sha256-QK0NNMJM4sj4u8nlNPBBQpqV0pBYUMcSwKqhna5q10c=";
4849
};
4950

5051
build-system = [
@@ -61,14 +62,17 @@ buildPythonPackage rec {
6162
sniffio
6263
tqdm
6364
typing-extensions
64-
];
65+
] ++ optional-dependencies.realtime;
6566

6667
optional-dependencies = {
6768
datalib = [
6869
numpy
6970
pandas
7071
pandas-stubs
7172
];
73+
realtime = [
74+
websockets
75+
];
7276
};
7377

7478
pythonImportsCheck = [ "openai" ];

0 commit comments

Comments
 (0)