-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Download template error #2083
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Section title (optional), section content (required, question answer, no more than 4096 characters)), question (optional, one per line in the cell) | ||
MaxKB product introduction, "MaxKB is a knowledge base question and answer system based on the LLM large language model. MaxKB = Max Knowledge Base aims to become the most powerful brain of the enterprise. | ||
Out-of-the-box: supports direct uploading of documents, automatic crawling of online documents, automatic text splitting and vectorization, and a good intelligent Q&A interactive experience; | ||
Seamless embedding: supports rapid embedding into third-party business systems with zero coding; | ||
Multi-model support: Supports docking with mainstream large models, including Ollama local private large models (such as Llama 2, Llama 3, qwen), Tongyi Qianwen, OpenAI, Azure OpenAI, Kimi, Zhipu AI, iFlytek Spark and Baidu Qianfan Large models etc. ","What is MaxKB? | ||
MaxKB product introduction | ||
Large language model supported by MaxKB | ||
MaxKB advantages" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
分段標題(選填),分段內容(必填,問題答案,最長不超過4096個字元)),問題(選填,單元格內一行一個) | ||
MaxKB產品介紹,"MaxKB 是一款基於 LLM 大語言模型的知識庫問答系統。MaxKB = Max Knowledge Base,旨在成為企業的最強大大腦。 | ||
開箱即用:支援直接上傳文檔、自動爬取線上文檔,支援文字自動分割、向量化,智慧問答互動體驗好; | ||
無縫嵌入:支援零編碼快速嵌入到第三方業務系統; | ||
多模型支援:支持對接主流的大模型,包括Ollama 本地私有大模型(如Llama 2、Llama 3、qwen)、通義千問、OpenAI、Azure OpenAI、Kimi、智譜AI、訊飛星火和百度千帆大模型等。 ","MaxKB是什麼? | ||
MaxKB產品介紹 | ||
MaxKB支援的大語言模型 | ||
MaxKB優勢" |
Binary file not shown.
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Position, reimbursement type, first-tier city reimbursement standard (yuan), second-tier city reimbursement standard (yuan), third-tier city reimbursement standard (yuan) | ||
Ordinary employees, accommodation expenses, 500, 400, 300 | ||
Department head, accommodation fee, 600, 500, 400 | ||
Department director, accommodation fee, 700, 600, 500 | ||
Regional general manager, accommodation fee, 800, 700, 600 | ||
Ordinary employees, food expenses, 50, 40, 30 | ||
Department head, food expenses, 50, 40, 30 | ||
Department director, food expenses, 50, 40, 30 | ||
Regional general manager, food expenses, 50, 40, 30 | ||
Ordinary employees, transportation expenses, 50, 40, 30 | ||
Department head, transportation expenses, 50, 40, 30 | ||
Department director, transportation expenses, 50, 40, 30 | ||
Regional general manager, transportation expenses, 50, 40, 30 |
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
職務,報銷類型,一線城市報銷標準(元),二線城市報銷標準(元),三線城市報銷標準(元) | ||
普通員工,住宿費,500,400,300 | ||
部門主管,住宿費,600,500,400 | ||
部門總監,住宿費,700,600,500 | ||
區域總經理,住宿費,800,700,600 | ||
普通員工,伙食費,50,40,30 | ||
部門主管,伙食費,50,40,30 | ||
部門總監,伙食費,50,40,30 | ||
區域總經理,伙食費,50,40,30 | ||
普通員工,交通費,50,40,30 | ||
部門主管,交通費,50,40,30 | ||
部門總監,交通費,50,40,30 | ||
區域總經理,交通費,50,40,30 |
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The provided code contains several improvements, corrections, and optimizations:
Translation Functions: The use of
get_message
has been replaced withgettext_lazy
. This is more efficient because it only retrieves the translated message if it's actually needed.Locale-Specific File Names: The
to_locale
function ensures that filenames include the locale information (e.g.,_template_jp.csv
) which can be useful for internationalization.Path Formatting: Fixed an error where the path was not properly formatted when constructing the full file paths, particularly in Excel templates.
Removed Unnecessary Imports: Removed unused imports such as
gettext
.Improved Code Readability: Minor adjustments made for better readability and maintainability.
Here's the revised version:
Key Improvements:
locale
to dynamically construct file names, enhancing support for different languages.{}
syntax for file name construction.These changes should improve both the performance and usability of the code.