3v324v23 commited on
Commit
45c81cd
1 Parent(s): 2dd3530

gpt-4 token +8192

Browse files
Files changed (1) hide show
  1. request_llm/bridge_all.py +2 -2
request_llm/bridge_all.py CHANGED
@@ -38,7 +38,7 @@ model_info = {
38
  "fn_with_ui": chatgpt_ui,
39
  "fn_without_ui": chatgpt_noui,
40
  "endpoint": "https://api.openai.com/v1/chat/completions",
41
- "max_token": 4096,
42
  "tokenizer": tiktoken.encoding_for_model("gpt-4"),
43
  "token_cnt": lambda txt: len(tiktoken.encoding_for_model("gpt-4").encode(txt, disallowed_special=())),
44
  },
@@ -57,7 +57,7 @@ model_info = {
57
  "fn_with_ui": chatgpt_ui,
58
  "fn_without_ui": chatgpt_noui,
59
  "endpoint": "https://openai.api2d.net/v1/chat/completions",
60
- "max_token": 4096,
61
  "tokenizer": tiktoken.encoding_for_model("gpt-4"),
62
  "token_cnt": lambda txt: len(tiktoken.encoding_for_model("gpt-4").encode(txt, disallowed_special=())),
63
  },
 
38
  "fn_with_ui": chatgpt_ui,
39
  "fn_without_ui": chatgpt_noui,
40
  "endpoint": "https://api.openai.com/v1/chat/completions",
41
+ "max_token": 8192,
42
  "tokenizer": tiktoken.encoding_for_model("gpt-4"),
43
  "token_cnt": lambda txt: len(tiktoken.encoding_for_model("gpt-4").encode(txt, disallowed_special=())),
44
  },
 
57
  "fn_with_ui": chatgpt_ui,
58
  "fn_without_ui": chatgpt_noui,
59
  "endpoint": "https://openai.api2d.net/v1/chat/completions",
60
+ "max_token": 8192,
61
  "tokenizer": tiktoken.encoding_for_model("gpt-4"),
62
  "token_cnt": lambda txt: len(tiktoken.encoding_for_model("gpt-4").encode(txt, disallowed_special=())),
63
  },