Update to version 0.7.4, fix CORS errors for the Moonshot provider, add BM25 search support, and document related changes in the CHANGELOG.

This commit is contained in:
duanfuxiang
2025-07-15 22:41:21 +08:00
parent c0cd2ccf4d
commit d99ea8f2f6
6 changed files with 27 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ export class OpenAIMessageAdapter {
client: OpenAI,
request: LLMRequestNonStreaming,
options?: LLMOptions,
extraParams?: Record<string, any>,
extraParams?: Record<string, unknown>,
): Promise<LLMResponseNonStreaming> {
const response = await client.chat.completions.create(
{
@@ -50,7 +50,7 @@ export class OpenAIMessageAdapter {
client: OpenAI,
request: LLMRequestStreaming,
options?: LLMOptions,
extraParams?: Record<string, any>,
extraParams?: Record<string, unknown>,
): Promise<AsyncIterable<LLMResponseStreaming>> {
const stream = await client.chat.completions.create(
{