Commit Graph

2436 Commits

Author SHA1 Message Date
-LAN-
0d6d40a454 chore(dependencies): update pydub version constraint and regenerate lock file 2024-10-18 15:52:05 +08:00
-LAN-
e861cfbfb0 chore(dependencies): update openai version constraint
- Changed openai version specifier from caret to tilde for more controlled updates.
- Updated `poetry.lock` file with new content hash.
2024-10-18 15:32:06 +08:00
-LAN-
0ceeeba15c chore(dependencies): update openai package to version 1.52.0 2024-10-18 15:32:03 +08:00
-LAN-
c03407616a refactor(api): update file preview handling and support for audio files
- Deprecated image-preview functionality in favor of file-preview for more uniform file handling.
- Introduced support for handling audio files along with images.
- Improved methods to handle different file types and transfer methods in a modular way.
- Simplified code by removing unnecessary checks for file type and related IDs.
- Updated OpenAI package to version 1.52.0 for improved compatibility.
- Added `jiter` dependency for JSON parsing.
2024-10-18 15:31:45 +08:00
Joe
af888c1b57 Merge branch 'feat/new-login' into deploy/dev
* feat/new-login:
  feat: ignore error
  chore: lint
  feat: update resets
  feat: add new guy redirect resets
  feat: update mail template; feat: add redirect
  feat: add class variable
  fix: _fulfill_login_params_from_env error
  feat: update control
  chore: update MAX_VARIABLE_SIZE
  chore: update MAX_VARIABLE_SIZE
  chore: remove extra config and init login type
  feat: update frozen
  feat: add init login type
  feat: update fulfill_params_from_enterprise
  feat: update ALLOW_REGISTER default value
2024-10-18 15:23:35 +08:00
Joe
e78634e2b0 feat: ignore error 2024-10-18 15:20:27 +08:00
Joe
380c40cd04 chore: lint 2024-10-18 15:05:27 +08:00
Joe
d2a65d3bf8 feat: update resets 2024-10-18 15:02:30 +08:00
Joe
9f7a929e94 feat: add new guy redirect resets 2024-10-18 14:39:20 +08:00
Joe
50435b84e2 feat: update mail template;
feat: add redirect
2024-10-18 14:16:14 +08:00
Joe
91477e1400 feat: add class variable 2024-10-18 11:42:14 +08:00
Joe
4dd823d97a fix: _fulfill_login_params_from_env error 2024-10-17 18:41:58 +08:00
Joe
f9268651cb feat: update control 2024-10-17 18:22:54 +08:00
-LAN-
6ae0fa777f Merge branch 'feat/enhance-multi-modal-support' into deploy/dev
Some checks are pending
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
2024-10-17 17:58:01 +08:00
-LAN-
3e75bda91c fix(tool_files): adjust argument order for as_attachment in parser 2024-10-17 17:57:56 +08:00
Joe
8965498f75 chore: update MAX_VARIABLE_SIZE 2024-10-17 17:56:19 +08:00
Joe
c1f059589b chore: update MAX_VARIABLE_SIZE 2024-10-17 17:54:59 +08:00
Joe
d848effedd chore: remove extra config and init login type 2024-10-17 17:51:48 +08:00
-LAN-
e1cc3028b2 Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-17 17:50:06 +08:00
-LAN-
9da077bd2f fix(tool_files): correct typo in default argument for as_attachment 2024-10-17 17:49:53 +08:00
-LAN-
534083ef02 Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-17 17:37:49 +08:00
-LAN-
9797935c73 feat(file-download): add inline or attachment option for file previews
- Introduced 'as_attachment' argument to specify download mode.
- Enables flexible file display as inline or attachment.
- Enhances user control over file preview behavior.
2024-10-17 17:37:33 +08:00
-LAN-
81aafbcf69 Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-17 17:23:33 +08:00
-LAN-
6d818418a3 fix(audio-generation): simplify audio response handling
- Specify 'wav' format directly in the speech API request.
- Streamline audio processing by using `from_wav` for efficient handling.
2024-10-17 17:23:14 +08:00
Joe
07ec7e0f3e feat: update frozen 2024-10-17 17:15:58 +08:00
-LAN-
dee5d0911e Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-17 16:40:49 +08:00
-LAN-
39d029d1b5 fix(podcast_audio_generator): specify audio format for file loading 2024-10-17 16:40:28 +08:00
Joe
be4b62d5d8 feat: add init login type 2024-10-17 16:39:04 +08:00
-LAN-
039c0692f1 fix(poetry.lock): update content hash for dependency resolution 2024-10-17 16:12:23 +08:00
-LAN-
5f8199b3a5 Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-17 16:05:07 +08:00
-LAN-
9156cfd384 fix(podcast_audio_generator): remove explicit format specification for audio file loading 2024-10-17 16:04:49 +08:00
StyleZhang
1397c782d4 merge feat/attachment 2024-10-17 15:31:32 +08:00
-LAN-
ebec4fef0c Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-17 13:30:41 +08:00
-LAN-
760b18fe26 chore(poetry.lock): update content hash for dependency resolution 2024-10-17 13:30:26 +08:00
-LAN-
7d88218a8b Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-17 13:24:24 +08:00
-LAN-
b10a599cc8 feat(podcast_audio_generator): improve audio generation workflow
- Replace custom silent MP3 generation with pydub library for silent WAV data.
- Adjust silence duration between audio segments for a more seamless playback.
- Export combined audio as WAV format in memory for better audio quality.
- Update dependencies to include pydub for enhanced audio manipulation.
2024-10-17 13:23:55 +08:00
-LAN-
13ad040b36 Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-17 12:03:00 +08:00
Joe
abe6a1bb99 Merge branch 'main' into feat/new-login
* main: (35 commits)
  fix https://github.com/langgenius/dify/issues/9409 (#9433)
  update dataset clean rule (#9426)
  add clean 7 days datasets (#9424)
  fix: resolve overlap issue with API Extension selector and modal (#9407)
  refactor: update the default values of top-k parameter in vdb to be consistent (#9367)
  fix: incorrect webapp image displayed (#9401)
  Fix/economical knowledge retrieval (#9396)
  feat: add timezone conversion for time tool (#9393)
  fix: Deprecated gemma2-9b model in Fireworks AI Provider (#9373)
  feat: storybook (#9324)
  fix: use gpt-4o-mini for validating credentials (#9387)
  feat: Enable baiduvector intergration test (#9369)
  fix: remove the stream option of zhipu and gemini (#9319)
  fix: add missing vikingdb param in docker .env.example (#9334)
  feat: add minimax abab6.5t support (#9365)
  fix: (#9336 followup) skip poetry preperation in style workflow when no change in api folder (#9362)
  feat: add glm-4-flashx, deprecated chatglm_turbo (#9357)
  fix: Azure OpenAI o1 max_completion_token and get_num_token_from_messages error (#9326)
  fix: In the output, the order of 'ta' is sometimes reversed as 'at'. #8015 (#8791)
  refactor: Add an enumeration type and use the factory pattern to obtain the corresponding class (#9356)
  ...
2024-10-17 11:33:33 +08:00
ybalbert001
fdcf87c70c
fix https://github.com/langgenius/dify/issues/9409 (#9433)
Co-authored-by: Yuanbo Li <ybalbert@amazon.com>
2024-10-17 10:47:56 +08:00
Jyong
5aabb83f5a
update dataset clean rule (#9426) 2024-10-17 10:40:22 +08:00
Joe
5c8d149786 feat: update fulfill_params_from_enterprise 2024-10-17 10:40:05 +08:00
Jyong
bd678f9ca1
add clean 7 days datasets (#9424)
Some checks are pending
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
2024-10-16 22:24:50 +08:00
-LAN-
46ea94b8ee chore(version): Sync version with main. 2024-10-16 19:48:53 +08:00
-LAN-
a28e2341da Merge branch 'feat/enhance-multi-modal-support' into deploy/dev
Some checks are pending
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
2024-10-16 19:28:21 +08:00
-LAN-
8d424c8222 refactor(tool_node): simplify tool_file_id assignment
- Remove redundant condition by directly assigning tool_file_id.
- Assume URL structure provides necessary file identifier.
2024-10-16 19:28:04 +08:00
-LAN-
f8cf3304df fix(file-serving): adjust content disposition header for images
- Set content disposition to 'inline' for image files to allow direct viewing in browsers.
- Maintain 'attachment' disposition for other file types to prompt download.
2024-10-16 19:27:50 +08:00
-LAN-
739919556d Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-16 18:39:17 +08:00
-LAN-
1529fe3b01 refactor(api): enhance file streaming response handling
- Split returned variables in `get_file_generator_by_tool_file_id` for improved clarity.
- Revised response construction to directly use file stream and include headers for content length.
- Removed unnecessary type hint that restricted flexibility.
2024-10-16 18:39:02 +08:00
-LAN-
912e4ca686 Merge branch 'feat/enhance-multi-modal-support' into deploy/dev 2024-10-16 18:29:30 +08:00
Joe
dd1ca37886 feat: update ALLOW_REGISTER default value 2024-10-16 18:16:25 +08:00