Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfrenken committed Sep 13, 2024
1 parent f80afcc commit cd81c73
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/langchain/src/openai/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import type {
} from '@langchain/openai';
import type {
OpenAiChatCompletionParameters,
OpenAiChatModel,
OpenAiEmbeddingModel
} from '@sap-ai-sdk/foundation-models';
import type {
AzureOpenAiChatModel,
AzureOpenAiEmbeddingModel
} from '@sap-ai-sdk/core';
import type { ConfigurationOptions } from '@sap-ai-sdk/ai-api';

/**
Expand All @@ -33,7 +35,7 @@ export type OpenAiChatModelInput = Omit<
> &
Omit<OpenAiChatCompletionParameters, 'messages'> &
BaseChatModelParams &
ConfigurationOptions<OpenAiChatModel>;
ConfigurationOptions<AzureOpenAiChatModel>;

/**
* Chat Call options.
Expand All @@ -60,5 +62,5 @@ export type OpenAiEmbeddingInput = Omit<
OpenAIEmbeddingsParams,
'modelName' | 'model' | 'azureOpenAIApiKey' | 'apiKey'
> &
ConfigurationOptions<OpenAiEmbeddingModel> &
ConfigurationOptions<AzureOpenAiEmbeddingModel> &
BaseLLMParams;

0 comments on commit cd81c73

Please sign in to comment.