Skip to content

Commit 3eed40e

Browse files
committed
Adapted Model listing to new object model
1 parent 5f2e9b8 commit 3eed40e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ If you have added the script to your path, you can run it from anywhere:
5454
![image](https://user-images.githubusercontent.com/3023775/232043124-5bcdc240-4b86-4397-9355-ff0a8dc2f3fe.png)
5555
![image](https://user-images.githubusercontent.com/3023775/232043119-d25b1e93-c99b-48e6-b9c6-ccbc1270a800.png)
5656

57-
New openAI lib v 1.2
57+
New openAI lib v 1.2.4
5858
--------------------
59-
On new installs after Nov6-23 we get the new python lib v 1.2.
59+
On new installs after Nov6-23 we get the new python lib v 1.2.4
6060

61-
This breaks some calls and responce types.
61+
This breaks some calls and response types.
6262

6363
OAI v.0.6.1 is adapted to the new lib!
6464

oai.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def main():
197197
if args.model:
198198
model_list = get_models()
199199
for mod in model_list:
200-
print(mod['id'])
200+
print(mod.id)
201201
sys.exit()
202202

203203
if args.version:

0 commit comments

Comments
 (0)