From 13a024fe65a940d1a5331dd72919b4990d252e44 Mon Sep 17 00:00:00 2001 From: Ilya Bondar Date: Thu, 16 Jan 2025 17:08:09 +0100 Subject: [PATCH] fix(chat): show full QuickApp description (Issue #2936) (#2944) --- apps/chat/src/constants/quick-apps.ts | 2 -- apps/chat/src/utils/app/application.ts | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/chat/src/constants/quick-apps.ts b/apps/chat/src/constants/quick-apps.ts index 08f0f6007..ec08e79b3 100644 --- a/apps/chat/src/constants/quick-apps.ts +++ b/apps/chat/src/constants/quick-apps.ts @@ -1,5 +1,3 @@ -export const QUICK_APP_CONFIG_DIVIDER = '>>>>>>>>>>'; - export const DEFAULT_QUICK_APPS_MODEL = 'gpt-4o'; export const DEFAULT_QUICK_APPS_HOST = diff --git a/apps/chat/src/utils/app/application.ts b/apps/chat/src/utils/app/application.ts index 0bf27994b..ce92cf2f0 100644 --- a/apps/chat/src/utils/app/application.ts +++ b/apps/chat/src/utils/app/application.ts @@ -21,7 +21,6 @@ import { DEFAULT_TEMPERATURE } from '@/src/constants/default-ui-settings'; import { DEFAULT_QUICK_APPS_MODEL, DEFAULT_QUICK_APPS_SCHEMA_ID, - QUICK_APP_CONFIG_DIVIDER, } from '@/src/constants/quick-apps'; import { ApiUtils, getApplicationApiKey } from '../server/api'; @@ -133,9 +132,7 @@ export const isQuickApp = (entity: DialAIEntityModel) => entity.applicationTypeSchemaId === DEFAULT_QUICK_APPS_SCHEMA_ID; export const getModelDescription = (entity: DialAIEntityModel) => { - return entity.description - ? entity.description.split(QUICK_APP_CONFIG_DIVIDER)[0] - : ''; + return entity.description ?? ''; }; export const getModelShortDescription = (entity: DialAIEntityModel) =>