mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
Merge branch 'main' into feat/new-login
* main: (64 commits) chore: Enable Japanese descriptions for Tools (#8646) Make WORKFLOW_* configurable as environment variables. (#8644) feat: add deepseek-v2.5 for model provider siliconflow (#8639) docs: fix predefined_model_scale_out.md redirect error (#8633) feat: add qwen2.5 for model provider siliconflow (#8630) fix: send message error when chatting with opening statement (#8627) fix: llm_generator.py JSONDecodeError (#8504) fix: commands.py (#8483) fix: redundant check for available_document_count (#8491) chore: enhance configuration descriptions (#8624) chore: add Gemini newest experimental models (close #7121) (#8621) feat: support o1 series models for openrouter (#8358) fix: form input add tabIndex (#8478) Add model parameter translation (#8509) feat(tools/cogview): Updated cogview tool to support cogview-3 and the latest cogview-3-plus (#8382) Add Fireworks AI as new model provider (#8428) feat:use xinference tts stream mode (#8616) docs: Add Japanese documentation for tools (#8469) feat: regenerate in `Chat`, `agent` and `Chatflow` app (#7661) feat: update pyproject.toml (#8368) ...
This commit is contained in:
@ -34,6 +34,7 @@ class MessageService:
|
||||
conversation_id: str,
|
||||
first_id: Optional[str],
|
||||
limit: int,
|
||||
order: str = "asc",
|
||||
) -> InfiniteScrollPagination:
|
||||
if not user:
|
||||
return InfiniteScrollPagination(data=[], limit=limit, has_more=False)
|
||||
@ -91,7 +92,8 @@ class MessageService:
|
||||
if rest_count > 0:
|
||||
has_more = True
|
||||
|
||||
history_messages = list(reversed(history_messages))
|
||||
if order == "asc":
|
||||
history_messages = list(reversed(history_messages))
|
||||
|
||||
return InfiniteScrollPagination(data=history_messages, limit=limit, has_more=has_more)
|
||||
|
||||
|
||||
@ -74,12 +74,14 @@ class ToolTransformService:
|
||||
en_US=provider_controller.identity.description.en_US,
|
||||
zh_Hans=provider_controller.identity.description.zh_Hans,
|
||||
pt_BR=provider_controller.identity.description.pt_BR,
|
||||
ja_JP=provider_controller.identity.description.ja_JP,
|
||||
),
|
||||
icon=provider_controller.identity.icon,
|
||||
label=I18nObject(
|
||||
en_US=provider_controller.identity.label.en_US,
|
||||
zh_Hans=provider_controller.identity.label.zh_Hans,
|
||||
pt_BR=provider_controller.identity.label.pt_BR,
|
||||
ja_JP=provider_controller.identity.label.ja_JP,
|
||||
),
|
||||
type=ToolProviderType.BUILT_IN,
|
||||
masked_credentials={},
|
||||
|
||||
Reference in New Issue
Block a user