惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
小众软件
小众软件
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
MyScale Blog
MyScale Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor: trim embedding provider internal exports · open...
steipete · 2026-05-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -37,7 +37,7 @@ const GEMINI_MAX_INPUT_TOKENS: Record<string, number> = {

3737

"gemini-embedding-2-preview": 8192,

3838

};

3939
40-

export type GeminiTaskType = NonNullable<MemoryEmbeddingProviderCreateOptions["taskType"]>;

40+

type GeminiTaskType = NonNullable<MemoryEmbeddingProviderCreateOptions["taskType"]>;

4141
4242

// --- gemini-embedding-2-preview support ---

4343

@@ -49,12 +49,12 @@ export const GEMINI_EMBEDDING_2_MODELS = new Set([

4949

const GEMINI_EMBEDDING_2_DEFAULT_DIMENSIONS = 3072;

5050

const GEMINI_EMBEDDING_2_VALID_DIMENSIONS = [768, 1536, 3072] as const;

5151
52-

export type GeminiTextPart = { text: string };

53-

export type GeminiInlinePart = {

52+

type GeminiTextPart = { text: string };

53+

type GeminiInlinePart = {

5454

inlineData: { mimeType: string; data: string };

5555

};

56-

export type GeminiPart = GeminiTextPart | GeminiInlinePart;

57-

export type GeminiEmbeddingRequest = {

56+

type GeminiPart = GeminiTextPart | GeminiInlinePart;

57+

type GeminiEmbeddingRequest = {

5858

content: { parts: GeminiPart[] };

5959

taskType: GeminiTaskType;

6060

outputDimensionality?: number;

@@ -305,7 +305,7 @@ export async function createGeminiEmbeddingProvider(

305305

};

306306

}

307307
308-

export async function resolveGeminiEmbeddingClient(

308+

async function resolveGeminiEmbeddingClient(

309309

options: MemoryEmbeddingProviderCreateOptions,

310310

): Promise<GeminiEmbeddingClient> {

311311

const remote = options.remote;

Original file line numberDiff line numberDiff line change

@@ -7,7 +7,7 @@ import {

77

} from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";

88

import type { SsrFPolicy } from "openclaw/plugin-sdk/ssrf-runtime";

99
10-

export type MistralEmbeddingClient = {

10+

type MistralEmbeddingClient = {

1111

baseUrl: string;

1212

headers: Record<string, string>;

1313

ssrfPolicy?: SsrFPolicy;

@@ -17,7 +17,7 @@ export type MistralEmbeddingClient = {

1717

export const DEFAULT_MISTRAL_EMBEDDING_MODEL = "mistral-embed";

1818

const DEFAULT_MISTRAL_BASE_URL = "https://api.mistral.ai/v1";

1919
20-

export function normalizeMistralModel(model: string): string {

20+

function normalizeMistralModel(model: string): string {

2121

return normalizeEmbeddingModelWithPrefixes({

2222

model,

2323

defaultModel: DEFAULT_MISTRAL_EMBEDDING_MODEL,

@@ -40,7 +40,7 @@ export async function createMistralEmbeddingProvider(

4040

};

4141

}

4242
43-

export async function resolveMistralEmbeddingClient(

43+

async function resolveMistralEmbeddingClient(

4444

options: MemoryEmbeddingProviderCreateOptions,

4545

): Promise<MistralEmbeddingClient> {

4646

return await resolveRemoteEmbeddingClient({

Original file line numberDiff line numberDiff line change

@@ -26,7 +26,7 @@ const OPENAI_MAX_INPUT_TOKENS: Record<string, number> = {

2626

"text-embedding-ada-002": 8191,

2727

};

2828
29-

export function normalizeOpenAiModel(model: string): string {

29+

function normalizeOpenAiModel(model: string): string {

3030

const trimmed = model.trim();

3131

if (!trimmed) {

3232

return DEFAULT_OPENAI_EMBEDDING_MODEL;

@@ -82,7 +82,7 @@ export async function createOpenAiEmbeddingProvider(

8282

};

8383

}

8484
85-

export async function resolveOpenAiEmbeddingClient(

85+

async function resolveOpenAiEmbeddingClient(

8686

options: MemoryEmbeddingProviderCreateOptions,

8787

): Promise<OpenAiEmbeddingClient> {

8888

const client = await resolveRemoteEmbeddingClient({

Original file line numberDiff line numberDiff line change

@@ -22,7 +22,7 @@ const VOYAGE_MAX_INPUT_TOKENS: Record<string, number> = {

2222

"voyage-code-3": 32000,

2323

};

2424
25-

export function normalizeVoyageModel(model: string): string {

25+

function normalizeVoyageModel(model: string): string {

2626

return normalizeEmbeddingModelWithPrefixes({

2727

model,

2828

defaultModel: DEFAULT_VOYAGE_EMBEDDING_MODEL,

@@ -72,7 +72,7 @@ export async function createVoyageEmbeddingProvider(

7272

};

7373

}

7474
75-

export async function resolveVoyageEmbeddingClient(

75+

async function resolveVoyageEmbeddingClient(

7676

options: MemoryEmbeddingProviderCreateOptions,

7777

): Promise<VoyageEmbeddingClient> {

7878

const { baseUrl, headers, ssrfPolicy } = await resolveRemoteEmbeddingBearerClient({