From 744759704d1f72a0e26dc58138b7ad94e43b64e3 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Mon, 29 Apr 2024 23:53:41 +0800 Subject: [PATCH] allow personal docx api access --- .../PDF\346\211\271\351\207\217\347\277\273\350\257\221.py" | 3 ++- request_llms/bridge_all.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git "a/crazy_functions/PDF\346\211\271\351\207\217\347\277\273\350\257\221.py" "b/crazy_functions/PDF\346\211\271\351\207\217\347\277\273\350\257\221.py" index dddc8f278..485864ec7 100644 --- "a/crazy_functions/PDF\346\211\271\351\207\217\347\277\273\350\257\221.py" +++ "b/crazy_functions/PDF\346\211\271\351\207\217\347\277\273\350\257\221.py" @@ -74,7 +74,8 @@ def pdf2markdown(filepath): import requests, json, os markdown_dir = get_log_folder(plugin_name="pdf_ocr") doc2x_api_key = DOC2X_API_KEY - url = "https://api.doc2x.noedgeai.com/api/v1/pdf" + # url = "https://api.doc2x.noedgeai.com/api/v1/pdf" + url = "https://api.doc2x.noedgeai.com/api/platform/pdf" chatbot.append((None, "加载PDF文件,发送至DOC2X解析...")) yield from update_ui(chatbot=chatbot, history=history) # 刷新界面 diff --git a/request_llms/bridge_all.py b/request_llms/bridge_all.py index d20e033f9..7213c5210 100644 --- a/request_llms/bridge_all.py +++ b/request_llms/bridge_all.py @@ -797,6 +797,7 @@ def decode(self, *args, **kwargs): model: { "fn_with_ui": chatgpt_ui, "fn_without_ui": chatgpt_noui, + "can_multi_thread": True, "endpoint": openai_endpoint, "max_token": max_token_tmp, "tokenizer": tokenizer_gpt35,