Skip to content

Commit

Permalink
allow personal docx api access
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Apr 29, 2024
1 parent 81df0aa commit 7447597
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crazy_functions/PDF批量翻译.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) # 刷新界面
Expand Down
1 change: 1 addition & 0 deletions request_llms/bridge_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7447597

Please sign in to comment.