Compare commits

...

1 Commits

Author SHA1 Message Date
arvinxx e863bf52a2 update file url 2026-01-24 15:37:23 +08:00
4 changed files with 7 additions and 7 deletions
@@ -298,7 +298,7 @@ export class MessagesEngine {
// 22. Message content processing (image encoding, etc.)
new MessageContentProcessor({
fileContext: fileContext || { enabled: true, includeFileUrl: true },
fileContext: fileContext || { enabled: true },
isCanUseVideo: capabilities?.isCanUseVideo || (() => false),
isCanUseVision: capabilities?.isCanUseVision || (() => true),
model,
@@ -57,8 +57,8 @@ export type VariableGenerators = Record<string, () => string>;
export interface FileContextConfig {
/** Whether to enable file context injection */
enabled: boolean;
/** Whether to include file URLs (desktop typically uses false) */
includeFileUrl: boolean;
/** Whether to include file URLs in file context prompts (default: true) */
includeFileUrl?: boolean;
}
/**
@@ -67,8 +67,8 @@ export const serverMessagesEngine = async ({
// Agent configuration
enableHistoryCount,
// File context configuration (server always includes file URLs)
fileContext: { enabled: true, includeFileUrl: true },
// File context configuration
fileContext: { enabled: true },
formatHistorySummary,
@@ -1,7 +1,7 @@
import { AgentBuilderIdentifier } from '@lobechat/builtin-tool-agent-builder';
import { GroupAgentBuilderIdentifier } from '@lobechat/builtin-tool-group-agent-builder';
import { GTDIdentifier } from '@lobechat/builtin-tool-gtd';
import { KLAVIS_SERVER_TYPES, LOBEHUB_SKILL_PROVIDERS, isDesktop } from '@lobechat/const';
import { KLAVIS_SERVER_TYPES, LOBEHUB_SKILL_PROVIDERS } from '@lobechat/const';
import {
type AgentBuilderContext,
type AgentGroupConfig,
@@ -350,7 +350,7 @@ export const contextEngineering = async ({
},
// File context configuration
fileContext: { enabled: true, includeFileUrl: !isDesktop },
fileContext: { enabled: true },
// Knowledge injection
knowledge: {