Skip to content

Commit

Permalink
fix(chat): show full QuickApp description (Issue #2936)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar committed Jan 16, 2025
1 parent b944d7d commit 2ec3d44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions apps/chat/src/constants/quick-apps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export const QUICK_APP_CONFIG_DIVIDER = '>>>>>>>>>>';

export const DEFAULT_QUICK_APPS_MODEL = 'gpt-4o';

export const DEFAULT_QUICK_APPS_HOST =
Expand Down
5 changes: 1 addition & 4 deletions apps/chat/src/utils/app/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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) =>
Expand Down

0 comments on commit 2ec3d44

Please sign in to comment.