Skip to content

Commit 63c2fff

Browse files
fix: resolve TypeScript issues in llm.ts after cherry-pick
1 parent a02f8ce commit 63c2fff

File tree

1 file changed

+4
-1
lines changed
  • packages/api/src/endpoints/openai

1 file changed

+4
-1
lines changed

packages/api/src/endpoints/openai/llm.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { HttpsProxyAgent } from 'https-proxy-agent';
22
import { KnownEndpoints } from 'librechat-data-provider';
3+
import type { AzureOpenAIInput } from '@langchain/azure-openai';
34
import type * as t from '~/types';
45
import { sanitizeModelName, constructAzureURL } from '~/utils/azure';
56
import { isEnabled } from '~/utils/common';
@@ -85,7 +86,7 @@ export function getOpenAIConfig(
8586
endpoint?: string | null,
8687
): t.LLMConfigResult {
8788
const {
88-
modelOptions = {},
89+
modelOptions: _modelOptions = {},
8990
reverseProxyUrl,
9091
defaultQuery,
9192
headers,
@@ -273,4 +274,6 @@ export function getOpenAIConfig(
273274
llmConfig,
274275
configOptions,
275276
};
277+
278+
return result;
276279
}

0 commit comments

Comments
 (0)