Skip to content

Commit bad44d8

Browse files
authored
perf: 支持文档格式的图片
2 parents 961b0ab + 7454920 commit bad44d8

40 files changed

+414
-495
lines changed

dist/buildinfo.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 228 additions & 264 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/lib/core/src/agent/agent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { LLMChatParams } from './types';
2-
import { ENV } from '../config/env';
2+
import { ENV } from '../config';
33
import { loadChatLLM } from './agent';
44
import '../config/env.test';
55

packages/lib/core/src/agent/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AgentUserConfig } from '../config/env';
1+
import type { AgentUserConfig } from '../config';
22
import type { ChatAgent, ImageAgent } from './types';
33
import { Anthropic } from './anthropic';
44
import { AzureChatAI, AzureImageAI } from './azure';

packages/lib/core/src/agent/anthropic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AgentUserConfig } from '../config/env';
1+
import type { AgentUserConfig } from '../config';
22
import type { SseChatCompatibleOptions } from './request';
33
import type { SSEMessage, SSEParserResult } from './stream';
44
import type {
@@ -8,7 +8,7 @@ import type {
88
HistoryItem,
99
LLMChatParams,
1010
} from './types';
11-
import { ENV } from '../config/env';
11+
import { ENV } from '../config';
1212
import { imageToBase64String } from '../utils/image';
1313
import { requestChatCompletions } from './request';
1414
import { Stream } from './stream';

packages/lib/core/src/agent/azure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AgentUserConfig } from '../config/env';
1+
import type { AgentUserConfig } from '../config';
22
import type {
33
ChatAgent,
44
ChatAgentResponse,

packages/lib/core/src/agent/chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { WorkerContext } from '../config/context';
1+
import type { WorkerContext } from '../config';
22
import type { ChatAgent, HistoryItem, HistoryModifier, LLMChatParams, UserMessageItem } from './types';
3-
import { ENV } from '../config/env';
3+
import { ENV } from '../config';
44
import { extractTextContent } from './utils';
55

66
/**

packages/lib/core/src/agent/cohere.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AgentUserConfig } from '../config/env';
1+
import type { AgentUserConfig } from '../config';
22
import type { SseChatCompatibleOptions } from './request';
33
import type { ChatAgent, ChatAgentResponse, ChatStreamTextHandler, LLMChatParams } from './types';
44
import { renderOpenAIMessages } from './openai';

packages/lib/core/src/agent/gemini.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AgentUserConfig } from '../config/env';
1+
import type { AgentUserConfig } from '../config';
22
import type { ChatAgent, ChatAgentResponse, ChatStreamTextHandler, LLMChatParams } from './types';
33
import { renderOpenAIMessages } from './openai';
44
import { requestChatCompletions } from './request';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from './agent';
2+
export * from './chat';
23
export * from './request';
34
export * from './types';

0 commit comments

Comments
 (0)