diff --git a/src/App.tsx b/src/App.tsx index 988f3daf9..671b62373 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -238,9 +238,8 @@ function App() { currentView === "openclawEnv" || currentView === "openclawTools" || currentView === "openclawAgents"); - const { data: openclawHealthWarnings = [] } = useOpenClawHealth( - isOpenClawView, - ); + const { data: openclawHealthWarnings = [] } = + useOpenClawHealth(isOpenClawView); const hasSkillsSupport = true; const hasSessionSupport = activeApp === "claude" || diff --git a/src/components/UsageFooter.tsx b/src/components/UsageFooter.tsx index fff72dcff..d48ffe844 100644 --- a/src/components/UsageFooter.tsx +++ b/src/components/UsageFooter.tsx @@ -183,7 +183,10 @@ const UsageFooter: React.FC = ({ {/* 扩展字段 extra */} {firstUsage.extra && ( - + {firstUsage.extra} )} diff --git a/src/components/openclaw/EnvPanel.tsx b/src/components/openclaw/EnvPanel.tsx index 638045d27..e08aa7fec 100644 --- a/src/components/openclaw/EnvPanel.tsx +++ b/src/components/openclaw/EnvPanel.tsx @@ -55,7 +55,8 @@ const EnvPanel: React.FC = () => { let description = detail || undefined; if (detail === "OPENCLAW_ENV_EMPTY") { description = t("openclaw.env.empty", { - defaultValue: "OpenClaw env cannot be empty. Use {} for an empty object.", + defaultValue: + "OpenClaw env cannot be empty. Use {} for an empty object.", }); } else if (detail === "OPENCLAW_ENV_INVALID_JSON") { description = t("openclaw.env.invalidJson", { diff --git a/src/components/openclaw/ToolsPanel.tsx b/src/components/openclaw/ToolsPanel.tsx index dfea2fd9d..daecf4b9e 100644 --- a/src/components/openclaw/ToolsPanel.tsx +++ b/src/components/openclaw/ToolsPanel.tsx @@ -179,9 +179,12 @@ const ToolsPanel: React.FC = () => { {`${unsupportedProfile} (${t("openclaw.tools.unsupportedProfileLabel", { - defaultValue: "unsupported", - })})`} + >{`${unsupportedProfile} (${t( + "openclaw.tools.unsupportedProfileLabel", + { + defaultValue: "unsupported", + }, + )})`} )} {OPENCLAW_TOOL_PROFILES.map((profile) => ( diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index 3d831dc3e..d385f0681 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -134,12 +134,13 @@ export const providerPresets: ProviderPreset[] = [ icon: "bailian", iconColor: "#624AFF", }, -{ + { name: "Bailian For Coding", websiteUrl: "https://bailian.console.aliyun.com", settingsConfig: { env: { - ANTHROPIC_BASE_URL: "https://coding.dashscope.aliyuncs.com/apps/anthropic", + ANTHROPIC_BASE_URL: + "https://coding.dashscope.aliyuncs.com/apps/anthropic", ANTHROPIC_AUTH_TOKEN: "", }, }, diff --git a/src/lib/api/openclaw.ts b/src/lib/api/openclaw.ts index c608c709b..cc45b862b 100644 --- a/src/lib/api/openclaw.ts +++ b/src/lib/api/openclaw.ts @@ -32,7 +32,9 @@ export const openclawApi = { /** * Set default model configuration (agents.defaults.model) */ - async setDefaultModel(model: OpenClawDefaultModel): Promise { + async setDefaultModel( + model: OpenClawDefaultModel, + ): Promise { return await invoke("set_openclaw_default_model", { model }); },