Skip to content
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

Rebase/0.9.1 dify #11

Open
wants to merge 331 commits into
base: feat/codelight
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
331 commits
Select commit Hold shift + click to select a range
53f37a6
fix:ollama text embedding 500 error (#8252)
Howe829 Sep 11, 2024
292220c
chore: apply pep8-naming rules for naming convention (#8261)
bowenliang123 Sep 11, 2024
4d2cd67
chore: remove useless code (#8198)
crazywoola Sep 11, 2024
fe8191b
enhance: improve empty data display for detail panel (#8266)
DDDDD12138 Sep 11, 2024
f515af2
let claude models in bedrock support the response_format parameter (#…
badbye Sep 11, 2024
781d294
chore: cleanup pycodestyle E rules (#8269)
bowenliang123 Sep 11, 2024
ec57922
fix(workflow/hooks/use-shortcuts): resolve issue of copy shortcut not…
Kevin9703 Sep 12, 2024
0bb7569
fix: markdown paragraph margin (#8289)
zxhlyh Sep 12, 2024
0f14873
chore: cleanup ruff flake8-simplify linter rules (#8286)
bowenliang123 Sep 12, 2024
56c90e2
fix(workflow): missing content in the answer node stream output durin…
takatost Sep 12, 2024
c69f5b0
chore: apply ruff E501 line-too-long linter rule (#8275)
bowenliang123 Sep 12, 2024
40fb4d1
chore: refurbish Python code by applying refurb linter rules (#8296)
bowenliang123 Sep 12, 2024
8815511
chore: apply flake8-pytest-style linter rules (#8307)
bowenliang123 Sep 12, 2024
d4985fb
Fix: Support Bedrock cross region inference [#8190](https://github.co…
ybalbert001 Sep 12, 2024
aa11659
Revert "Feat: update app published time after clicking publish button…
crazywoola Sep 12, 2024
02c4b1a
chore:add Azure openai api version 2024-08-01-preview (#8291)
leslie2046 Sep 12, 2024
404db1a
Fix VariableEntityType Bug external-data-tool -> external_data_tool (…
GuoNingNing Sep 12, 2024
5db0b56
docs: update lambda_translate_utils.yaml (#8293)
eltociear Sep 12, 2024
153807f
fix: response_format label (#8326)
ZuzooVn Sep 12, 2024
e90d3c2
feat: add OpenAI o1 series models support (#8328)
takatost Sep 12, 2024
c78828a
chore: update Dify version to 0.8.1 (#8329)
laipz8200 Sep 12, 2024
49cee77
fixed score threshold is none (#8342)
JohnJyong Sep 13, 2024
a9c1f1a
fix(workflow): fix var-selector not update when edges change (#8259)
HiChen404 Sep 13, 2024
5f03e66
Feature/service api workflow logs (#8323)
fanlia Sep 13, 2024
8d2269f
fix: copy and paste shortcut in the textarea of the workflow run pane…
YIXIAO0 Sep 13, 2024
4637dda
feat: add o1-series models support in Agent App (ReACT only) (#8350)
takatost Sep 13, 2024
82f7875
feat: add langfuse sentry ignore error (#8353)
ZhouhaoJiang Sep 13, 2024
80a322a
chore: update version to 0.8.2 in packaging and docker-compose files …
laipz8200 Sep 13, 2024
a45ac6a
fix: ark token usage is none (#8351)
sinomoe Sep 13, 2024
08c4864
fix: score_threshold handling in vector search methods (#8356)
laipz8200 Sep 13, 2024
6613b8f
chore: fix unnecessary string concatation in single line (#8311)
bowenliang123 Sep 13, 2024
24af4b9
fix: o1-series model encounters an error when the generate mode is bl…
takatost Sep 13, 2024
5dfd7ab
fix: when edit load balancing config not pass the empty filed value h…
iamjoel Sep 13, 2024
84ac5cc
fix: add before send to remove langfuse defaultErrorResponse (#8361)
ZhouhaoJiang Sep 13, 2024
9d80d7d
fix: edit load balancing not pass id (#8370)
iamjoel Sep 13, 2024
cd3eaed
fix(workflow): both parallel and single branch errors occur in if-els…
takatost Sep 13, 2024
06b6621
chore: update firecrawl scrape to V1 api (#8367)
hjlarry Sep 13, 2024
1ab81b4
support hunyuan-turbo (#8372)
xiandan-erizo Sep 13, 2024
a1104ab
chore: refurish python code by applying Pylint linter rules (#8322)
bowenliang123 Sep 13, 2024
aad6f34
fix (#8322 followup): resolve the violation of pylint rules (#8391)
bowenliang123 Sep 13, 2024
5b98acd
chore: improve usage of striping prefix or suffix of string with Ruff…
bowenliang123 Sep 13, 2024
b6b1057
fix: sandbox issue related httpx and requests (#8397)
Yeuoly Sep 13, 2024
71b4480
fix: o1-mini 65563 -> 65536 (#8388)
crazywoola Sep 13, 2024
bf55b19
fix: pyproject.toml typo (#8396)
ZuzooVn Sep 14, 2024
8efae1c
fix(docker): aliyun oss path env key (#8394)
incca Sep 14, 2024
b613b11
Fix: Support Bedrock cross region inference #8190 (Update Model name …
ybalbert001 Sep 14, 2024
f55e06d
fix: resolve runtime error when self.folder is None (#8401)
swingchen01 Sep 14, 2024
0123498
fix:logs and rm unused codes in CacheEmbedding (#8409)
Howe829 Sep 14, 2024
f01602b
fix(workflow): the answer node after the iteration node containing th…
takatost Sep 14, 2024
5b18e85
fix: when the variable does not exist, an error should be prompted (#…
HiChen404 Sep 14, 2024
032dd93
Fix: operation postion of answer in logs (#8411)
JzoNgKVO Sep 14, 2024
52857dc
feat: allow users to specify timeout for text generations and workflo…
kurokobo Sep 14, 2024
de7bc22
fix: sys_var startwith 'sys.' not 'sys' #8421 (#8422)
yanxiyue Sep 14, 2024
6f7625f
chore: update Jina embedding model (#8376)
DresAaron Sep 14, 2024
b6ad7a1
Fix: https://github.com/langgenius/dify/issues/8190 (Update Model nam…
ybalbert001 Sep 14, 2024
d882348
fix: delete the delay for the tooltips inside the add tool panel (#8436)
YIXIAO0 Sep 14, 2024
88c9834
chore(workflow): Optimize the iteration when selecting a variable fro…
takatost Sep 14, 2024
72b7f8a
Bugfix/fix feishu plugins (#8443)
Sep 14, 2024
6243314
fix: Improve scrolling behavior for Conversation Opener (#8437)
ZuzooVn Sep 14, 2024
fa1af8e
add WorkflowClient.get_result, increase version number (#8435)
twisker Sep 14, 2024
445497c
add svg render & Image preview optimization (#8387)
charli117 Sep 14, 2024
65162a8
fix:docker-compose.middleware.yaml start the Weaviate container by de…
hwzhuhao Sep 14, 2024
7e611ff
multi-retrival use dataset's top-k (#8416)
JohnJyong Sep 14, 2024
bf16de5
fix: internal error when tool authorization (#8449)
takatost Sep 14, 2024
4788e1c
[Python SDK] Add KnowledgeBaseClient and the corresponding test cases…
twisker Sep 15, 2024
b73faae
fix(RunOnce): change to form submission instead of onKeyDown and onCl…
MH4GF Sep 15, 2024
aa5b2db
chore: workflow BRANCH, PARALLEL i18n (#8452)
ZuzooVn Sep 15, 2024
3d083b7
feat: add flux dev of siliconflow image-gen tool (#8450)
hjlarry Sep 15, 2024
6dba68f
feat: Add base URL settings and secure_ascii options to the Brave sea…
XiaoLey Sep 15, 2024
e896d1e
chore: update the .gitignore file to include opensearch,pgvector,and …
hwzhuhao Sep 17, 2024
cf645c3
feat: Add ComfyUI tool for Stable Diffusion (#8160)
QunBB Sep 18, 2024
8dfe8c7
chore: Deprecate gpt-3.5-turbo-0613 and gpt-3.5-turbo-16k-0613 models…
laipz8200 Sep 18, 2024
6f222b4
refactor: rename task_type to task for jina embeddings v3 (#8488)
bwanglzu Sep 18, 2024
41bea4c
validate user permission before enter app detail page (#8527)
douxc Sep 18, 2024
2721cb8
feat: add format util unit and add pre-commit unit check (#8427)
LLmoskk Sep 19, 2024
54b9e1f
fix: ci issues(missing duckduckgo-search==6.2.11, ruff lint issue) (#…
takatost Sep 19, 2024
ffd2f61
fix: thread_pool submit count in parallel workflow not releasing (#8549)
takatost Sep 19, 2024
d6de96c
feat: sync Qwen API with Aliyun Bailian (#8538)
soulteary Sep 19, 2024
d96f5ba
add storage error log (#8556)
JohnJyong Sep 19, 2024
7411bcf
chore: improve delimiter (#8552)
iamjoel Sep 19, 2024
a03919c
feat: add hunyuan-vision (#8529)
muzea Sep 19, 2024
1568c5c
fix: fix qwen series model type (#8580)
soulteary Sep 20, 2024
c87f710
Fix: update qwen model and model config (#8584)
soulteary Sep 20, 2024
1583283
ComfyUI tool use the new internal enumeration class "VariableKey" (#8…
QunBB Sep 20, 2024
b773ebd
chore: fix webpack dependencies order (#8542)
hjlarry Sep 20, 2024
7f3282e
Update version to 0.8.3 in packaging and docker-compose files (#8590)
laipz8200 Sep 20, 2024
e0a3307
fix(workflow): "Max submit count reached" error occurred when executi…
takatost Sep 20, 2024
d63a5a1
fix: a helper link error (#8508)
hjlarry Sep 21, 2024
483ead5
chore: translate i18n files (#8557)
github-actions[bot] Sep 21, 2024
e75c33a
Enhance Readme Documentation to Clarify the Importance of Celery Serv…
fchange Sep 21, 2024
b3cb97f
docs: Update ssrf_proxy related doc link in docker-compose file (#8516)
saifeiLee Sep 21, 2024
5541248
Update the PerfXCloud provider model list,Update PerfXCloudProvider v…
BingGeX Sep 21, 2024
5ddb601
add MixtralAI Model (#8517)
AAEE86 Sep 21, 2024
8219f9e
fix: api/core/ops/ops_trace_manager.py (#8501)
ZuzooVn Sep 21, 2024
1a8dcae
add Qwen custom add model interface (#8565)
AAEE86 Sep 21, 2024
831c5a9
refactor(ops): Optimize the iteration for filter_none_values and use …
hwzhuhao Sep 21, 2024
b32a771
feat: update pyproject.toml (#8368)
ZhouhaoJiang Sep 21, 2024
8c51d06
feat: regenerate in `Chat`, `agent` and `Chatflow` app (#7661)
xuzuodong Sep 21, 2024
a587f0d
docs: Add Japanese documentation for tools (#8469)
totsukash Sep 22, 2024
c8b9bde
feat:use xinference tts stream mode (#8616)
leslie2046 Sep 22, 2024
0665268
Add Fireworks AI as new model provider (#8428)
yaoice Sep 22, 2024
740fad0
feat(tools/cogview): Updated cogview tool to support cogview-3 and t…
ox01024 Sep 22, 2024
c9f1e18
Add model parameter translation (#8509)
AAEE86 Sep 22, 2024
6c2fa8d
fix: form input add tabIndex (#8478)
LLmoskk Sep 22, 2024
6d56d5c
feat: support o1 series models for openrouter (#8358)
sinomoe Sep 22, 2024
97895ec
chore: add Gemini newest experimental models (close #7121) (#8621)
CXwudi Sep 22, 2024
ddf6569
chore: enhance configuration descriptions (#8624)
ZuzooVn Sep 22, 2024
8fd297f
fix: redundant check for available_document_count (#8491)
y-omr Sep 22, 2024
6e37750
fix: commands.py (#8483)
ZuzooVn Sep 22, 2024
eaa7e9b
fix: llm_generator.py JSONDecodeError (#8504)
ZuzooVn Sep 22, 2024
2d869d6
fix: send message error when chatting with opening statement (#8627)
xuzuodong Sep 22, 2024
45c0a44
feat: add qwen2.5 for model provider siliconflow (#8630)
hwzhuhao Sep 22, 2024
6df7703
docs: fix predefined_model_scale_out.md redirect error (#8633)
hwzhuhao Sep 22, 2024
e34f043
feat: add deepseek-v2.5 for model provider siliconflow (#8639)
hwzhuhao Sep 22, 2024
cae73b9
Make WORKFLOW_* configurable as environment variables. (#8644)
fujita-h Sep 23, 2024
03fdf5e
chore: Enable Japanese descriptions for Tools (#8646)
totsukash Sep 23, 2024
3618a97
feat: extend api params for Jina Embeddings V3 (#8657)
DresAaron Sep 23, 2024
4c7beb9
fix: Assignment exception (#8663)
haike-1213 Sep 23, 2024
86f90fd
chore: skip PLR6201 linter rule (#8666)
bowenliang123 Sep 23, 2024
b37954b
fix: png avatar upload as jpeg (#8665)
hjlarry Sep 23, 2024
c66ceca
add Qwen model translate (#8674)
AAEE86 Sep 23, 2024
3554a80
add zhipuai web search (#8668)
AAEE86 Sep 23, 2024
a126d53
add Spark Max-32K (#8676)
AAEE86 Sep 23, 2024
c7eacd1
chore: Optimize I18nObject class for better performance and readabili…
ZuzooVn Sep 23, 2024
11d09a9
fix: send message error when last sent message not succeeded (#8682)
xuzuodong Sep 23, 2024
52da5b1
fixbug tts(stream) not work on ios safari(17.1+) (#8645)
likenamehaojie Sep 23, 2024
4f69adc
fix: document_create_args_validate (#8569)
vikeychen Sep 23, 2024
d7aada3
Add nomic embedding model provider (#8640)
yaoice Sep 23, 2024
8cc9e68
fix: prompt for the follow-up suggestions (#8685)
crazywoola Sep 23, 2024
bef83a4
fix: typos and improve naming conventions: (#8687)
ZuzooVn Sep 23, 2024
7f1b028
fix: change the brand name to Jina AI (#8691)
Nick17t Sep 23, 2024
21e9608
feat: add xinference sd web ui api tool (#8385)
themanforfree Sep 24, 2024
7c485f8
fix llm integration problem: It doesn't work on docker env (#8701)
ybalbert001 Sep 24, 2024
1ecf70d
feat: add mixedbread as a new model provider (#8523)
hwzhuhao Sep 24, 2024
aebe5fc
fix: Remove unsupported parameters in qwen model (#8699)
AAEE86 Sep 24, 2024
4638f99
fix: change model provider name issue Ref #8691 (#8710)
BenjaminX Sep 24, 2024
64baedb
fix: update nomic model provider token calculation (#8705)
yaoice Sep 24, 2024
f42ef06
fix: embedded chat on ios (#8718)
zxhlyh Sep 24, 2024
9ca2e2c
chore: remove windows platform timezone set (#8712)
hjlarry Sep 24, 2024
1c7877b
fix: remove harm category setting from vertex ai (#8721)
totsukash Sep 24, 2024
debe595
Fix/update jina ai products labels and descriptions (#8730)
Nick17t Sep 24, 2024
4669eb2
add embedding input type parameter (#8724)
JohnJyong Sep 24, 2024
91f70d0
Add embedding models in fireworks provider (#8728)
yaoice Sep 25, 2024
68c7e68
Fix Issue: switch LLM of SageMaker endpoint doesn't take effect (#8737)
ybalbert001 Sep 25, 2024
bf64ff2
fix: . is missing in file_extension (#8736)
crazywoola Sep 25, 2024
cb1942c
chore: make url display in the middle of http node (#8741)
hjlarry Sep 25, 2024
2328944
chore: apply ruff reformat for python-client sdk (#8752)
hwzhuhao Sep 25, 2024
d0e0111
fix:Spark's large language model token calculation error #7911 (#8755)
cherryhuahua Sep 25, 2024
b0927c3
fix: expose the configuration of HTTP request node to Docker (#8716)
zhuiyue132 Sep 25, 2024
2ef8b18
Add GitHub Actions Workflow for Web Tests (#8753)
xuzuodong Sep 25, 2024
ef47f68
fix: the translation result may cause a different meaning (#8763)
douxc Sep 25, 2024
02ff6cc
feat: add support for Vertex AI Gemini 1.5 002 and experimental model…
hellof20 Sep 25, 2024
a8b837c
dep: bump ElasticSearch from 8.14.x to 8.15.x (#8197)
bowenliang123 Sep 25, 2024
fefbc43
chore: fix comfyui tool doc url (#8775)
QunBB Sep 26, 2024
5ba19d6
fix: TavilySearch tool get api link (#8780)
hjlarry Sep 26, 2024
ac73763
chore: add input_type param desc for the _invoke method of text_embed…
hwzhuhao Sep 26, 2024
0c96f0a
fix: credential *** should be string (#8785)
hjlarry Sep 26, 2024
4c9ef6e
fix: update usage for Jina Embeddings v3 (#8771)
DresAaron Sep 26, 2024
a0b0809
Add more models for SiliconFlow (#8779)
jackalcooper Sep 26, 2024
d1173a6
fix: the Image-1X tool (#8787)
hjlarry Sep 26, 2024
6240699
fix: start node input config modal raise 'variable name is required'…
hjlarry Sep 26, 2024
128a66f
fix: Ollama modelfeature set vision, and an exception occurred at the…
free-cx Sep 26, 2024
008e0ef
refactor: update delete method as an abstract method (#8794)
hwzhuhao Sep 26, 2024
6df14e5
fix: workflow as tool always outdated (#8798)
hjlarry Sep 26, 2024
3d2cb25
fix: change wrong company name (#8801)
iamjoel Sep 26, 2024
03edfbe
feat: add qwen to add custom model parameters (#8759)
AAEE86 Sep 26, 2024
9a4b53a
feat: add stream for Gemini (#8678)
AAEE86 Sep 26, 2024
3dfbc34
feat: improved SVG output UX (#8765)
xuzuodong Sep 26, 2024
063474f
Add llama3.2 model in fireworks provider (#8809)
yaoice Sep 26, 2024
ecc9516
add more detailed doc for models of qwen series (#8799)
wenmengzhou Sep 26, 2024
e5efd09
chore: massive update of the Gemini models based on latest documentat…
CXwudi Sep 27, 2024
a36117e
Updated the YouTube channel to Dify's (#8817)
shaiss Sep 27, 2024
6fbaabc
feat: add pgvecto-rs and analyticdb in docker/.env.example (#8823)
hwzhuhao Sep 27, 2024
d6b9587
fix: close log status option raise error (#8826)
hjlarry Sep 27, 2024
4c1063e
fix: AnalyticdbVector retrieval scores (#8803)
lpdink Sep 27, 2024
29275c7
feat: deprecate mistral model for siliconflow (#8828)
hwzhuhao Sep 27, 2024
bb78176
Add Llama3.2 models in Groq provider (#8831)
Howe829 Sep 27, 2024
0603359
fix: delete harm catalog settings for gemini (#8829)
CXwudi Sep 27, 2024
c828a5d
feat(Tools): add feishu tools (#8800)
Sep 27, 2024
55e6123
feat: add min-connection and max-connection for pgvector (#8841)
hwzhuhao Sep 27, 2024
27e33fb
chore: fix wrong VectorType match case (#8857)
yaoice Sep 28, 2024
a2e2f8a
fix(workflow/nodes/knowledge-retrieval/use-config): Preserve rerankin…
Kevin9703 Sep 28, 2024
6cd22f3
fix: update qwen2.5-coder-7b model name (#8861)
hwzhuhao Sep 28, 2024
49af18f
fix: customize model credentials were invalid despite the provider cr…
takatost Sep 28, 2024
61c89a9
feat: add internlm2.5-20b and qwen2.5-coder-7b model (#8862)
hwzhuhao Sep 28, 2024
850492d
feat: deprecate gte-Qwen2-7B-instruct embedding model (#8866)
hwzhuhao Sep 28, 2024
f976073
refactor: update Callback to an abstract class (#8868)
hwzhuhao Sep 28, 2024
74f58f2
chore: bump ruff to 0.6.8 for fixing violation in SIM910 (#8869)
bowenliang123 Sep 28, 2024
4ec977e
fix(workflow): update tagging logic in GitHub Actions (#8882)
laipz8200 Sep 29, 2024
e4ed916
Add Jamba and Llama3.2 model support (#8878)
longzhihun Sep 29, 2024
c531b4a
fix: #8843 event: tts_message_end always return in api streaming resp…
ic-xu Sep 29, 2024
42dfde6
docs: add english versions for the files customizable_model_scale_out…
hwzhuhao Sep 29, 2024
fb49413
feat: add voyage ai as a new model provider (#8747)
hwzhuhao Sep 29, 2024
369e1e6
feat(website-crawl): add jina reader as additional alternative for we…
mapleeit Sep 30, 2024
3af65b2
feat(api): add version comparison logic (#8902)
laipz8200 Sep 30, 2024
ada9d40
refactor(api/variables): VariableError as a ValueError. (#8554)
laipz8200 Sep 30, 2024
503561f
fix: fix the data validation consistency issue in keyword content rev…
hwzhuhao Sep 30, 2024
77aef9f
refactor: optimize the calculation of rerank threshold and the logic …
hwzhuhao Sep 30, 2024
9d221a5
external knowledge api (#8913)
JohnJyong Sep 30, 2024
1304670
fix: line in iteration node is not straight (#8918)
YIXIAO0 Sep 30, 2024
4585cff
fix: Compatible with special characters in pg full-text search. (#8921)
ThreeFish-AI Sep 30, 2024
824a713
chore: translate i18n files (#8917)
github-actions[bot] Sep 30, 2024
fa837b2
fix: fix the issue with the system model configuration update (#8923)
hwzhuhao Sep 30, 2024
1af4ca3
Feat: add debounce for search in logs (#8924)
JzoNgKVO Sep 30, 2024
d2ce496
chore(versioning): bump version to 0.9.0 (#8911)
laipz8200 Sep 30, 2024
a651b73
original dataset update issue (#8935)
JohnJyong Sep 30, 2024
7873e45
fix: Fix the error when importing web pages using jina (#8937)
douxc Sep 30, 2024
3069b5c
original dataset update remove unuseful parameters (#8939)
JohnJyong Sep 30, 2024
d6a44e9
fix: request params for internal dataset (#8940)
YIXIAO0 Sep 30, 2024
730d3a6
chore(version): bump to 0.9.1 (#8938)
laipz8200 Sep 30, 2024
7850a28
Revert "chore(version): bump to 0.9.1" (#8944)
laipz8200 Sep 30, 2024
625e4c4
fix multiple retrieval in knowledge node (#8942)
JohnJyong Sep 30, 2024
1f5cc07
chore(version): bump to 0.9.1 (#8945)
laipz8200 Sep 30, 2024
cdd7e55
chore: add missing models from Voyage (#8950)
CXwudi Oct 1, 2024
0d84221
chore: sort Gemini models (#8951)
CXwudi Oct 1, 2024
2deaece
refactor: remove unnecessary comment (#8949)
y-omr Oct 1, 2024
c2d606d
chore: remove unexecuted scripts to avoid ambiguity (#8946)
yaoice Oct 1, 2024
824a0dd
feat: add qwen2.5-72b and llama3.2 for openrouter (#8956)
hwzhuhao Oct 1, 2024
24ba9fd
feat: enhance stepfun image generation tool (#8954)
hwzhuhao Oct 1, 2024
5f8a270
fix: chat API is not bringing the conversation/session history (#8965)
xuzuodong Oct 1, 2024
5366820
fix: corrected typo (#8979)
y-omr Oct 2, 2024
415d27c
feat(Tools): add discord incoming webhook for sending messages (#7852)
yaoice Oct 2, 2024
4373777
Update json_in_md_parser.py (#8983)
zhao85 Oct 3, 2024
dc5839b
feat: Update AWS Bedrock supported regions (#8992)
Retr0-01 Oct 3, 2024
9815a09
fix: tools description is missing (#8999)
crazywoola Oct 3, 2024
ecd0cd8
feat: implement internal api service for internal usage
lau-td Sep 4, 2024
0d38b5b
feat: enable cors
lau-td Sep 4, 2024
620713e
feat: implement pagination api for chat messages history
lau-td Sep 18, 2024
023a154
feat: apply asc sort for chat messages history
lau-td Sep 18, 2024
261a65f
feat: login-without-password
PhamDacTrung Sep 19, 2024
0989080
reformat
PhamDacTrung Sep 19, 2024
8f1e3c2
update: temporary remove the hash check for workflow draft process
lau-td Sep 19, 2024
55a68e4
feat: change dataset default permission
PhamDacTrung Sep 19, 2024
fba336e
feat: implement passport and conversation for codelight
lau-td Sep 24, 2024
544d599
hot fix: update the name of conversation when created
lau-td Sep 24, 2024
66d4479
hot fix: add nimspace ai ai for passport api
lau-td Sep 24, 2024
275bd76
hot fix: add end user name and email into token payload
lau-td Sep 25, 2024
0b1e007
feat: pagination chat message history
nguyenphuvinhtoan Sep 19, 2024
9fc3c1a
adding new get conversations api in v1/codelight
nguyenphuvinhtoan Sep 25, 2024
37ee66e
hot fix: fix the message pagination for codelight
lau-td Sep 26, 2024
4950c33
hot fix: update the search by user name for conversation api
nguyenphuvinhtoan Sep 26, 2024
920c489
build (WIP): set up ci/cd for dev deploy
lau-td Sep 30, 2024
0318578
build (WIP): set up ci/cd for dev deploy
lau-td Sep 30, 2024
b71fba0
build (WIP): set up ci/cd for dev deploy
lau-td Sep 30, 2024
c6ee4e2
build (WIP): set up ci/cd for dev deploy
lau-td Sep 30, 2024
4145d3a
build (WIP): set up ci/cd for dev deploy
lau-td Sep 30, 2024
d94b15d
add new sort method
nguyenphuvinhtoan Sep 27, 2024
4c9056e
feat: implement custom add firecrawl datasource
lau-td Oct 1, 2024
7a125b8
feat: implement get conversation details api
lau-td Oct 4, 2024
0f40efa
rebase: merge version 0.9.1
lau-td Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
with:
images: ${{ env[matrix.image_name_env] }}
tags: |
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') }}
type=ref,event=branch
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }}
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/codelight-build-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: "Dev Deployment"

on:
push:
branches:
- feat/codelight

env:
NAME: blox3-v1-prod
ZONE: asia-southeast1-a
SVC_NAME: dify-service

jobs:
build-deploy:
name: Build and deploy application to server
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MY_REPO_PAT_NEW }}

- name: Fetch latest changes
run: git fetch

- name: Checkout latest code
run: |
git fetch --all
git checkout -B feat/codelight origin/feat/codelight

- name: Log latest commit message
run: |
echo "Latest commit message:"
git log -1 --pretty=%B

- name: Deploy to server
uses: appleboy/[email protected]
with:
host: ${{ vars.DEPLOY_SERVER }}
port: ${{ vars.SSH_PORT }}
username: ${{vars.SSH_USER}}
key: ${{ secrets.SSH_KEY }}

script: |
cd /home/ubuntu/ai-codelight/dify && git pull

docker compose -f /home/ubuntu/ai-codelight/dify/docker/docker-compose.yaml stop api || true
docker compose -f /home/ubuntu/ai-codelight/dify/docker/docker-compose.yaml stop worker || true

docker compose -f /home/ubuntu/ai-codelight/dify/docker/docker-compose.yaml rm -f api || true
docker-compose -f /home/ubuntu/ai-codelight/dify/docker/docker-compose.yaml rm -f worker || true

docker compose -f /home/ubuntu/ai-codelight/dify/docker/docker-compose.yaml up api --build -d
docker compose -f /home/ubuntu/ai-codelight/dify/docker/docker-compose.yaml up worker --build -d
8 changes: 4 additions & 4 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Check changed files
id: changed-files
uses: tj-actions/changed-files@v44
uses: tj-actions/changed-files@v45
with:
files: api/**

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

- name: Check changed files
id: changed-files
uses: tj-actions/changed-files@v44
uses: tj-actions/changed-files@v45
with:
files: web/**

Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:

- name: Check changed files
id: changed-files
uses: tj-actions/changed-files@v44
uses: tj-actions/changed-files@v45
with:
files: |
**.sh
Expand All @@ -107,7 +107,7 @@ jobs:
dev/**

- name: Super-linter
uses: super-linter/super-linter/slim@v6
uses: super-linter/super-linter/slim@v7
if: steps.changed-files.outputs.any_changed == 'true'
env:
BASH_SEVERITY: warning
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/translate-i18n-base-on-english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 2 # last 2 commits

- name: Check for file changes in i18n/en-US
id: check_files
run: |
changed_files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} -- 'i18n/en-US/*.ts')
recent_commit_sha=$(git rev-parse HEAD)
second_recent_commit_sha=$(git rev-parse HEAD~1)
changed_files=$(git diff --name-only $recent_commit_sha $second_recent_commit_sha -- 'i18n/en-US/*.ts')
echo "Changed files: $changed_files"
if [ -n "$changed_files" ]; then
echo "FILES_CHANGED=true" >> $GITHUB_ENV
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/web-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Web Tests

on:
pull_request:
branches:
- main
paths:
- web/**

concurrency:
group: web-tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
name: Web Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: web/**

- name: Setup Node.js
uses: actions/setup-node@v4
if: steps.changed-files.outputs.any_changed == 'true'
with:
node-version: 20
cache: yarn
cache-dependency-path: ./web/package.json

- name: Install dependencies
if: steps.changed-files.outputs.any_changed == 'true'
run: yarn install --frozen-lockfile

- name: Run tests
if: steps.changed-files.outputs.any_changed == 'true'
run: yarn test
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ docker-legacy/volumes/etcd/*
docker-legacy/volumes/minio/*
docker-legacy/volumes/milvus/*
docker-legacy/volumes/chroma/*
docker-legacy/volumes/opensearch/data/*
docker-legacy/volumes/pgvectors/data/*
docker-legacy/volumes/pgvector/data/*

docker/volumes/app/storage/*
docker/volumes/certbot/*
Expand All @@ -164,6 +167,12 @@ docker/volumes/etcd/*
docker/volumes/minio/*
docker/volumes/milvus/*
docker/volumes/chroma/*
docker/volumes/opensearch/data/*
docker/volumes/myscale/data/*
docker/volumes/myscale/log/*
docker/volumes/unstructured/*
docker/volumes/pgvector/data/*
docker/volumes/pgvecto_rs/data/*

docker/nginx/conf.d/default.conf
docker/middleware.env
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
| 被团队成员标记为高优先级的功能 | 高优先级 |
| 在 [community feedback board](https://github.com/langgenius/dify/discussions/categories/feedbacks) 内反馈的常见功能请求 | 中等优先级 |
| 非核心功能和小幅改进 | 低优先级 |
| 有价值当不紧急 | 未来功能 |
| 有价值但不紧急 | 未来功能 |

### 其他任何事情(例如 bug 报告、性能优化、拼写错误更正):
* 立即开始编码。
Expand Down Expand Up @@ -138,7 +138,7 @@ Dify 的后端使用 Python 编写,使用 [Flask](https://flask.palletsproject
├── models // 描述数据模型和 API 响应的形状
├── public // 如 favicon 等元资源
├── service // 定义 API 操作的形状
├── test
├── test
├── types // 函数参数和返回值的描述
└── utils // 共享的实用函数
```
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Dify is licensed under the Apache License 2.0, with the following additional con

1. Dify may be utilized commercially, including as a backend service for other applications or as an application development platform for enterprises. Should the conditions below be met, a commercial license must be obtained from the producer:

a. Multi-tenant SaaS service: Unless explicitly authorized by Dify in writing, you may not use the Dify source code to operate a multi-tenant environment.
a. Multi-tenant service: Unless explicitly authorized by Dify in writing, you may not use the Dify source code to operate a multi-tenant environment.
- Tenant Definition: Within the context of Dify, one tenant corresponds to one workspace. The workspace provides a separated area for each tenant's data and configurations.

b. LOGO and copyright information: In the process of using Dify's frontend components, you may not remove or modify the LOGO or copyright information in the Dify console or applications. This restriction is inapplicable to uses of Dify that do not involve its frontend components.
Expand Down
2 changes: 1 addition & 1 deletion README_JA.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ DifyはオープンソースのLLMアプリケーション開発プラットフ
プロンプトの作成、モデルパフォーマンスの比較が行え、チャットベースのアプリに音声合成などの機能も追加できます。

**4. RAGパイプライン**:
ドキュメントの取り込みから検索までをカバーする広範なRAG機能ができます。ほかにもPDF、PPT、その他の一般的なドキュメントフォーマットからのテキスト抽出のサーポイントも提供します
ドキュメントの取り込みから検索までをカバーする広範なRAG機能ができます。ほかにもPDF、PPT、その他の一般的なドキュメントフォーマットからのテキスト抽出のサポートも提供します

**5. エージェント機能**:
LLM Function CallingやReActに基づくエージェントの定義が可能で、AIエージェント用のプリビルトまたはカスタムツールを追加できます。Difyには、Google検索、DALL·E、Stable Diffusion、WolframAlphaなどのAIエージェント用の50以上の組み込みツールが提供します。
Expand Down
22 changes: 18 additions & 4 deletions api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ DB_DATABASE=dify

# Storage configuration
# use for store upload files, private keys...
# storage type: local, s3, azure-blob, google-storage
# storage type: local, s3, azure-blob, google-storage, tencent-cos, huawei-obs, volcengine-tos
STORAGE_TYPE=local
STORAGE_LOCAL_PATH=storage
S3_USE_AWS_MANAGED_IAM=false
Expand Down Expand Up @@ -73,13 +73,26 @@ TENCENT_COS_SECRET_ID=your-secret-id
TENCENT_COS_REGION=your-region
TENCENT_COS_SCHEME=your-scheme

# Huawei OBS Storage Configuration
HUAWEI_OBS_BUCKET_NAME=your-bucket-name
HUAWEI_OBS_SECRET_KEY=your-secret-key
HUAWEI_OBS_ACCESS_KEY=your-access-key
HUAWEI_OBS_SERVER=your-server-url

# OCI Storage configuration
OCI_ENDPOINT=your-endpoint
OCI_BUCKET_NAME=your-bucket-name
OCI_ACCESS_KEY=your-access-key
OCI_SECRET_KEY=your-secret-key
OCI_REGION=your-region

# Volcengine tos Storage configuration
VOLCENGINE_TOS_ENDPOINT=your-endpoint
VOLCENGINE_TOS_BUCKET_NAME=your-bucket-name
VOLCENGINE_TOS_ACCESS_KEY=your-access-key
VOLCENGINE_TOS_SECRET_KEY=your-secret-key
VOLCENGINE_TOS_REGION=your-region

# CORS configuration
WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
Expand All @@ -101,11 +114,10 @@ QDRANT_GRPC_ENABLED=false
QDRANT_GRPC_PORT=6334

# Milvus configuration
MILVUS_HOST=127.0.0.1
MILVUS_PORT=19530
MILVUS_URI=http://127.0.0.1:19530
MILVUS_TOKEN=
MILVUS_USER=root
MILVUS_PASSWORD=Milvus
MILVUS_SECURE=false

# MyScale configuration
MYSCALE_HOST=127.0.0.1
Expand Down Expand Up @@ -150,6 +162,8 @@ PGVECTOR_PORT=5433
PGVECTOR_USER=postgres
PGVECTOR_PASSWORD=postgres
PGVECTOR_DATABASE=postgres
PGVECTOR_MIN_CONNECTION=1
PGVECTOR_MAX_CONNECTION=5

# Tidb Vector configuration
TIDB_VECTOR_HOST=xxx.eu-central-1.xxx.aws.tidbcloud.com
Expand Down
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ RUN apt-get update \
&& echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list \
&& apt-get update \
# For Security
&& apt-get install -y --no-install-recommends zlib1g=1:1.3.dfsg+really1.3.1-1 expat=2.6.2-2 libldap-2.5-0=2.5.18+dfsg-3 perl=5.38.2-5 libsqlite3-0=3.46.0-1 \
&& apt-get install -y --no-install-recommends zlib1g=1:1.3.dfsg+really1.3.1-1 expat libldap-2.5-0=2.5.18+dfsg-3 perl=5.38.2-5 libsqlite3-0=3.46.0-1 \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 1 addition & 3 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@

8. Start Dify [web](../web) service.
9. Setup your application by visiting `http://localhost:3000`...
10. If you need to debug local async processing, please start the worker service.
10. If you need to handle and debug the async tasks (e.g. dataset importing and documents indexing), please start the worker service.

```bash
poetry run python -m celery -A app.celery worker -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail,ops_trace,app_deletion
```

The started celery app handles the async tasks, e.g. dataset importing and documents indexing.

## Testing

1. Install dependencies for both the backend and the test environment
Expand Down
29 changes: 19 additions & 10 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
import warnings
from logging.handlers import RotatingFileHandler

from flask import Flask, Response, request
from flask_cors import CORS
from werkzeug.exceptions import Unauthorized

import contexts
from commands import register_commands
from configs import dify_config
Expand All @@ -42,22 +38,23 @@
)
from extensions.ext_database import db
from extensions.ext_login import login_manager
from flask import Flask, Response, request
from flask_cors import CORS
from libs.passport import PassportService

# TODO: Find a way to avoid importing models here
from models import account, dataset, model, source, task, tool, tools, web
from services.account_service import AccountService
from werkzeug.exceptions import Unauthorized

# DO NOT REMOVE ABOVE


warnings.simplefilter("ignore", ResourceWarning)

# fix windows platform
if os.name == "nt":
os.system('tzutil /s "UTC"')
else:
os.environ["TZ"] = "UTC"
os.environ["TZ"] = "UTC"
# windows platform not support tzset
if hasattr(time, "tzset"):
time.tzset()


Expand Down Expand Up @@ -164,7 +161,7 @@ def initialize_extensions(app):
@login_manager.request_loader
def load_user_from_request(request_from_flask_login):
"""Load user based on the request."""
if request.blueprint not in ["console", "inner_api"]:
if request.blueprint not in ["console", "inner_api", "codelight_api"]:
return None
# Check if the user_id contains a dot, indicating the old format
auth_header = request.headers.get("Authorization", "")
Expand Down Expand Up @@ -241,6 +238,18 @@ def register_blueprints(app):

app.register_blueprint(inner_api_bp)

# For codelight
from controllers.codelight import bp as codelight_bp

CORS(
codelight_bp,
resources={r"/*": {"origins": "*"}},
supports_credentials=True,
allow_headers=["Content-Type", "Authorization"],
methods=["GET", "PUT", "POST", "DELETE", "OPTIONS", "PATCH"],
)
app.register_blueprint(codelight_bp)


# create app
app = create_app()
Expand Down
Loading