Skip to content

Commit a8a85f7

Browse files
Fix handling of --response-format in audio transcriptions create command
1 parent 435a580 commit a8a85f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/openai/cli/_utils.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ def organization_info() -> str:
3333

3434

3535
def print_model(model: BaseModel) -> None:
36-
sys.stdout.write(model_json(model, indent=2) + "\n")
36+
if isinstance(model, BaseModel):
37+
sys.stdout.write(model_json(model, indent=2) + "\n")
38+
elif isinstance(model, str):
39+
sys.stdout.write(model)
3740

3841

3942
def can_use_http2() -> bool:

0 commit comments

Comments
 (0)