From 8c997bff1cebff5d1e47a19ff103e3d40c48f829 Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Wed, 10 May 2023 11:18:44 -0500 Subject: Fix recursion caused by name change --- src/gpt_chat_cli/cmd.py | 5 +++-- 1 file 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): -- cgit v1.2.3