Skip to content

Commit

Permalink
last type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Oct 30, 2024
1 parent ac2aedc commit 7387e47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
AssistantMessage,
Message as InferenceMessage,
MessageRole as InferenceMessageRole,
generateFakeToolCallId,
} from '@kbn/inference-plugin/common';
} from '@kbn/inference-common';
import { generateFakeToolCallId } from '@kbn/inference-plugin/common';

export function convertMessagesForInference(messages: Message[]): InferenceMessage[] {
const inferenceMessages: InferenceMessage[] = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
* 2.0.
*/

import {
correctCommonEsqlMistakes,
isChatCompletionChunkEvent,
isOutputEvent,
} from '@kbn/inference-plugin/common';
import { isChatCompletionChunkEvent, isOutputEvent } from '@kbn/inference-common';
import { correctCommonEsqlMistakes } from '@kbn/inference-plugin/common';
import { naturalLanguageToEsql } from '@kbn/inference-plugin/server';
import {
FunctionVisibility,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ export const NL_TO_ESQL_TOOL: AssistantTool = {
connectorId,
input: question,
...(isOssModel ? { functionCalling: 'simulated' } : {}),
logger: {
debug: (source) => {
logger.debug(typeof source === 'function' ? source() : source);
},
},
logger,
})
);
};
Expand Down

0 comments on commit 7387e47

Please sign in to comment.