Skip to content

Commit c300b9e

Browse files
authored
Merge pull request #53 from meta-d/develop
version 2.6.0
2 parents 6e2a2fa + 4a3be67 commit c300b9e

File tree

34 files changed

+440
-182
lines changed

34 files changed

+440
-182
lines changed

.deploy/api/package-prod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metad-server",
3-
"version": "2.0.0",
3+
"version": "2.6",
44
"license": "MIT",
55
"scripts": {
66
"start": "nx serve",

.deploy/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ocap-server",
33
"author": "Metad",
4-
"version": "2.5.9",
4+
"version": "2.6",
55
"scripts": {
66
"start": "nx serve",
77
"build": "nx build",

.deploy/webapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ocap",
3-
"version": "2.5",
3+
"version": "2.6",
44
"description": "",
55
"license": "AGPL-3.0",
66
"homepage": "https://mtda.cloud",

apps/cloud/src/app/_app.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@import './features/_features.component';
44

55
.pac-page-header {
6-
@apply flex flex-col justify-start items-start gap-2 px-4 pt-4;
6+
@apply flex flex-col justify-start items-stretch gap-2 px-4 pt-4;
77
}
88
.pac-page-title {
99
@apply text-2xl font-bold;

apps/cloud/src/app/features/chatbi/input/input.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
bg-white
99
dark:bg-neutral-900 dark:border-neutral-700"
1010
>
11-
<div class="flex items-center flex-grow gap-x-2">
11+
<div class="flex items-center flex-grow">
1212
<button class="p-1 rounded-lg hover:bg-black/5 dark:hover:bg-white/10"
1313
[matTooltip]="'Copilot.NewChat' | translate: {Default: 'New chat'}"
1414
[cdkMenuTriggerFor]="menu"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ocap",
3-
"version": "2.5",
3+
"version": "2.6",
44
"description": "",
55
"license": "AGPL-3.0",
66
"homepage": "https://mtda.cloud",

packages/adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metad/adapter",
3-
"version": "2.5.9",
3+
"version": "2.6.0",
44
"dependencies": {
55
"@sap/hana-client": "^2.20.20",
66
"axios": "^0.21.4",

packages/analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metad/analytics",
3-
"version": "2.5.9",
3+
"version": "2.6.0",
44
"type": "commonjs",
55
"license": "MIT",
66
"scripts": {

packages/analytics/src/chatbi/conversation.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { BehaviorSubject, firstValueFrom, Subject, switchMap, takeUntil } from '
2929
import { ChatBIModelService } from '../chatbi-model/chatbi-model.service'
3030
import { AgentState, createReactAgent } from '../core/index'
3131
import { createDimensionMemberRetriever, SemanticModelMemberService } from '../model-member/index'
32-
import { convertOcapSemanticModel, getSemanticModelKey, NgmDSCoreService, registerModel } from '../model/ocap'
32+
import { getSemanticModelKey, NgmDSCoreService, registerModel } from '../model/ocap'
3333
import { ChatBIService } from './chatbi.service'
3434
import { markdownCubes } from './graph/index'
3535
import { createLLM } from './llm'
@@ -188,7 +188,7 @@ export class ChatBIConversation implements IChatBIConversation {
188188
}
189189
})
190190

191-
const models = items.map((item) => ({...item, model: convertOcapSemanticModel(item.model)}))
191+
const models = items
192192

193193
this.logger.debug(`Chat models visits:`, models.map(({ visits }) => visits).join(', '))
194194

@@ -320,13 +320,13 @@ ${makeCubeRulesPrompt()}
320320
${PROMPT_RETRIEVE_DIMENSION_MEMBER}
321321
${PROMPT_TIME_SLICER}
322322
323-
If you have any questions about how to analysis data (such as 'how to create a formula of calculated measure', 'how to create some type chart', 'how to create a time slicer about relative time'), please call 'referencesRetriever' tool to get the reference documentations.
323+
If you have any questions about how to analysis data (such as 'how to create some type chart', 'how to create a time slicer about relative time'), please call 'referencesRetriever' tool to get the reference documentations.
324324
325325
${createAgentStepsInstructions(
326326
`Extract the information mentioned in the problem into 'dimensions', 'measurements', 'time', 'slicers', etc.`,
327327
`For every measure, determine whether it exists in the cube context, if it does, proceed directly to the next step, if not found, call the 'createIndicator' tool to create new calculated measure for it. After creating the measure, you need to call the subsequent steps to re-answer the complete answer.`,
328328
CubeVariablePrompt,
329-
`If the time condition is a specified fixed time (such as 2023 year, 202202, 2020 Q1), please add it to 'slicers' according to the time dimension. If the time condition is relative (such as this month, last month, last year), please add it to 'timeSlicers'.`,
329+
`If the time condition is a specified fixed time (such as xxxx year, yyyyMM, yyyy Q1), please add it to 'slicers' according to the time dimension. If the time condition is relative (such as this month, last month, last year, this year), please add it to 'timeSlicers'.`,
330330
`Then call 'answerQuestion' tool to show complete answer to user, don't create image for answer`,
331331
`Finally, ref to the result of 'answerQuestion' tool, call 'giveMoreQuestions' tool to give more analysis suggestions`
332332
)}
@@ -453,7 +453,7 @@ ${createAgentStepsInstructions(
453453
if (['thinking', 'continuing', 'waiting'].includes(this.message?.status)) {
454454
this.message.update({
455455
status: 'error',
456-
elements: [{tag: 'markdown', content: `出现内部错误:\n${verboseContent}`}]
456+
elements: [{tag: 'markdown', content: verboseContent}]
457457
})
458458
}
459459
}

packages/analytics/src/chatbi/message.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ export class ChatLarkMessage {
8989
type: 'text',
9090
complex_interaction: true,
9191
width: 'default',
92-
size: 'medium'
92+
size: 'medium',
93+
value: C_CHATBI_END_CONVERSATION
9394
},
9495
{
9596
tag: 'button',

0 commit comments

Comments
 (0)