Skip to content

Commit 79e0d86

Browse files
author
xueren.dt
committed
chore(ava): delete useless code and move prompt to same folder
1 parent 70709c7 commit 79e0d86

12 files changed

Lines changed: 7 additions & 1900 deletions

File tree

__tests__/unit/extract/mock-extract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { requestTboxLLM } from '../../../src/utils/llm';
2-
import { getExtractPrompt } from '../../../src/extract/extract/prompt';
2+
import { getExtractPrompt } from '../../../src/prompt/extract';
33

44
export const extract = async (value: string) => {
55
const llmAuth = process.env.LLM_AUTH;

site/.dumi/global.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ if (window) {
2525
(window as any).g2plot = require('@antv/g2plot');
2626
(window as any).g2 = require('@antv/g2');
2727

28-
(window as any).ava = require('../../packages/ava/src');
29-
3028
require('antd/lib/alert/style/index.css');
3129
require('katex/dist/katex.min.css');
3230
}

src/advisor/advise-chart-pipeline/plugins/advisePlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from '../../../types';
1010
import { AdviseChartPluginEnum } from '../../../constants/pipeline';
1111
import { DATA_SHAPE } from '../../../extract/constants';
12-
import { getChartAdvisePrompt, getSpecGeneratePrompt } from '../../chartAdvise/prompt';
12+
import { getChartAdvisePrompt, getSpecGeneratePrompt } from '../../../prompt';
1313
import { Spec } from '../../../bind';
1414

1515
export class AdvisePlugin implements AdvisorPlugin<AdviseChartParams> {

0 commit comments

Comments
 (0)