From e1abf636a40d4c0b97d3cc8235cef0feb8764473 Mon Sep 17 00:00:00 2001 From: jwj7140 Date: Wed, 28 Jun 2023 02:18:03 +0900 Subject: [PATCH] fix mistakes --- examples/server/api_like_OAI.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/server/api_like_OAI.py b/examples/server/api_like_OAI.py index 53afc010d..5adcb1c5d 100755 --- a/examples/server/api_like_OAI.py +++ b/examples/server/api_like_OAI.py @@ -8,7 +8,7 @@ import json app = Flask(__name__) -parser = argparse.ArgumentParser(description="Convert a LLaMa model to a GGML compatible file") +parser = argparse.ArgumentParser(description="An example of using server.cpp with a similar API to OAI. It must be used together with server.cpp.") parser.add_argument("--chat-prompt", type=str, help="the top prompt in chat completions(default: 'A chat between a curious user and an artificial intelligence assistant. The assistant follows the given rules no matter what.\\n')", default='A chat between a curious user and an artificial intelligence assistant. The assistant follows the given rules no matter what.\\n') parser.add_argument("--user-name", type=str, help="USER name in chat completions(default: '\\nUSER: ')", default="\\nUSER: ") parser.add_argument("--ai-name", type=str, help="ASSISTANT name in chat completions(default: '\\nASSISTANT: ')", default="\\nASSISTANT: ") @@ -21,9 +21,6 @@ parser.add_argument("--port", type=int, help="Set the port to listen.(default: 8 args = parser.parse_args() - -print(len(args.system_name)) - def is_present(json, key): try: buf = json[key]