diff --git a/packages/langchain/src/openai/types.ts b/packages/langchain/src/openai/types.ts index 1f115cda..56164976 100644 --- a/packages/langchain/src/openai/types.ts +++ b/packages/langchain/src/openai/types.ts @@ -5,9 +5,7 @@ import type { OpenAIChatInput, OpenAIEmbeddingsParams } from '@langchain/openai'; -import type { - OpenAiChatCompletionParameters, -} from '@sap-ai-sdk/foundation-models'; +import type { OpenAiChatCompletionParameters } from '@sap-ai-sdk/foundation-models'; import type { AzureOpenAiChatModel, AzureOpenAiEmbeddingModel diff --git a/packages/langchain/src/openai/util.test.ts b/packages/langchain/src/openai/util.test.ts index a4a3f0d7..8ce5cc62 100644 --- a/packages/langchain/src/openai/util.test.ts +++ b/packages/langchain/src/openai/util.test.ts @@ -1,11 +1,18 @@ // mapResponseToChatResult // mapLangchainToAiClient -import { OpenAiChatClient as OpenAiChatClientBase, OpenAiChatCompletionOutput } from '@sap-ai-sdk/foundation-models'; +import { + OpenAiChatClient as OpenAiChatClientBase, + OpenAiChatCompletionOutput +} from '@sap-ai-sdk/foundation-models'; import { jest } from '@jest/globals'; import nock from 'nock'; import { HumanMessage } from '@langchain/core/messages'; -import { mockClientCredentialsGrantCall, mockInference, parseMockResponse } from '../../../../test-util/mock-http.js'; +import { + mockClientCredentialsGrantCall, + mockInference, + parseMockResponse +} from '../../../../test-util/mock-http.js'; import { mapResponseToChatResult } from './util.js'; import { OpenAiChatClient } from './chat.js'; @@ -35,7 +42,9 @@ const prompt = { frequency_penalty: 0 }; -const langchainPrompt = new HumanMessage('Where is the deepest place on earth located'); +const langchainPrompt = new HumanMessage( + 'Where is the deepest place on earth located' +); const request = { frequency_penalty: 0,