We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435a580 commit a8a85f7Copy full SHA for a8a85f7
src/openai/cli/_utils.py
@@ -33,7 +33,10 @@ def organization_info() -> str:
33
34
35
def print_model(model: BaseModel) -> None:
36
- sys.stdout.write(model_json(model, indent=2) + "\n")
+ if isinstance(model, BaseModel):
37
+ sys.stdout.write(model_json(model, indent=2) + "\n")
38
+ elif isinstance(model, str):
39
+ sys.stdout.write(model)
40
41
42
def can_use_http2() -> bool:
0 commit comments