From 45fa0404ebff7eec784ab1ed58dd96efa9cbfc4e Mon Sep 17 00:00:00 2001 From: hongyi-zhao Date: Fri, 26 Jan 2024 16:36:23 +0800 Subject: [PATCH] Update bridge_all.py: supports gpt-4-turbo-preview (#1517) * Update bridge_all.py: supports gpt-4-turbo-preview supports gpt-4-turbo-preview * Update bridge_all.py --------- Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com> --- request_llms/bridge_all.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/request_llms/bridge_all.py b/request_llms/bridge_all.py index 1435247..575ac63 100644 --- a/request_llms/bridge_all.py +++ b/request_llms/bridge_all.py @@ -150,6 +150,15 @@ model_info = { "token_cnt": get_token_num_gpt4, }, + "gpt-4-turbo-preview": { + "fn_with_ui": chatgpt_ui, + "fn_without_ui": chatgpt_noui, + "endpoint": openai_endpoint, + "max_token": 128000, + "tokenizer": tokenizer_gpt4, + "token_cnt": get_token_num_gpt4, + }, + "gpt-4-1106-preview": { "fn_with_ui": chatgpt_ui, "fn_without_ui": chatgpt_noui, @@ -159,6 +168,15 @@ model_info = { "token_cnt": get_token_num_gpt4, }, + "gpt-4-0125-preview": { + "fn_with_ui": chatgpt_ui, + "fn_without_ui": chatgpt_noui, + "endpoint": openai_endpoint, + "max_token": 128000, + "tokenizer": tokenizer_gpt4, + "token_cnt": get_token_num_gpt4, + }, + "gpt-3.5-random": { "fn_with_ui": chatgpt_ui, "fn_without_ui": chatgpt_noui,