Skip to content

Commit

Permalink
Merge pull request #153 from VisActor/fix/type-error
Browse files Browse the repository at this point in the history
fix: function type error
  • Loading branch information
da730 authored Jul 11, 2024
2 parents 52c19ec + ed528f7 commit 5978216
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Prompt } from '../../../../../../base/tools/prompt';
import { getInsightTextPrompt } from './template';
import type { DataAggregationContext, InsightContext } from '../../../../../../applications/types';
import type { InsightContext } from '../../../../../../applications/types';

export class GPTInsightTextPrompt extends Prompt<InsightContext> {
constructor() {
Expand All @@ -11,7 +11,7 @@ export class GPTInsightTextPrompt extends Prompt<InsightContext> {
const InsightTextPrompt = getInsightTextPrompt(llmOptions.insightTextContext, language);
return InsightTextPrompt;
}
getUserPrompt(context: DataAggregationContext): string {
getUserPrompt(context: InsightContext): string {
return '';
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Prompt } from '../../../../../../base/tools/prompt';
import { getInsightTextPrompt } from './template';
import type { DataAggregationContext, InsightContext } from '../../../../../../applications/types';
import type { InsightContext } from '../../../../../../applications/types';

export class SkylarkInsightTextPrompt extends Prompt<InsightContext> {
constructor() {
Expand All @@ -11,7 +11,7 @@ export class SkylarkInsightTextPrompt extends Prompt<InsightContext> {
const InsightTextPrompt = getInsightTextPrompt(llmOptions.insightTextContext, language);
return InsightTextPrompt;
}
getUserPrompt(context: DataAggregationContext): string {
getUserPrompt(context: InsightContext): string {
return '';
}
}
2 changes: 1 addition & 1 deletion packages/vmind/src/core/VMind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class VMind {

async intelligentInsight(spec: any, options?: Partial<InsightContext>): Promise<InsightOutput> {
const modelType = this.getModelType();
const context: InsightContext = {
const context = {
spec,
llmOptions: this._options,
...options
Expand Down

0 comments on commit 5978216

Please sign in to comment.