aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2023-05-10 11:18:44 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2023-05-10 12:43:52 -0500
commit8c997bff1cebff5d1e47a19ff103e3d40c48f829 (patch)
tree7f7a2c244e0ce63f151ec482fc948d18b4de355f
parenta4afbafe6a9e1d2937ab2134028fc4e4442a5c05 (diff)
downloadgpt-chat-cli-8c997bff1cebff5d1e47a19ff103e3d40c48f829.tar.xz
gpt-chat-cli-8c997bff1cebff5d1e47a19ff103e3d40c48f829.zip
Fix recursion caused by name change
-rw-r--r--src/gpt_chat_cli/cmd.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpt_chat_cli/cmd.py b/src/gpt_chat_cli/cmd.py
index d7aed6c..86ce0e6 100644
--- a/src/gpt_chat_cli/cmd.py
+++ b/src/gpt_chat_cli/cmd.py
@@ -12,7 +12,6 @@ from typing import Tuple, Optional
from .openai_wrappers import (
create_chat_completion,
- list_models,
OpenAIChatResponse,
OpenAIChatResponseStream,
FinishReason,
@@ -20,6 +19,8 @@ from .openai_wrappers import (
ChatMessage
)
+from .openai_wrappers import list_models as openai_list_models
+
from .argvalidation import (
Arguments,
DisplayArguments,
@@ -235,7 +236,7 @@ def version():
print(f'version {VERSION}')
def list_models():
- for model in list_models():
+ for model in openai_list_models():
print(model)
def interactive(args : Arguments):