aboutsummaryrefslogtreecommitdiff
path: root/src/gpt_chat_cli/gcli.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpt_chat_cli/gcli.py')
-rw-r--r--src/gpt_chat_cli/gcli.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpt_chat_cli/gcli.py b/src/gpt_chat_cli/gcli.py
index f0b754e..a9d36e4 100644
--- a/src/gpt_chat_cli/gcli.py
+++ b/src/gpt_chat_cli/gcli.py
@@ -10,6 +10,7 @@ from typing import Tuple
from .openai_wrappers import (
create_chat_completion,
+ list_models,
OpenAIChatResponse,
OpenAIChatResponseStream,
FinishReason,
@@ -138,6 +139,13 @@ def main():
print(f'version {VERSION}')
sys.exit(0)
+ if args.list_models:
+
+ for model in list_models():
+ print(model)
+
+ sys.exit(0)
+
completion_args = args.completion_args
COLOR_CODE = get_color_codes(no_color = not args.display_args.color)