mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:10:49 +00:00
chore(lint): enable unnecessary type parameter rule
This commit is contained in:
@@ -124,8 +124,6 @@ export async function runMemoryEmbeddingRetryLoop<T>(params: {
|
||||
}
|
||||
}
|
||||
|
||||
export function buildTextEmbeddingInputs<T extends MemoryEmbeddingChunk>(
|
||||
chunks: T[],
|
||||
): MemoryEmbeddingInput[] {
|
||||
export function buildTextEmbeddingInputs(chunks: MemoryEmbeddingChunk[]): MemoryEmbeddingInput[] {
|
||||
return chunks.map((chunk) => chunk.embeddingInput ?? { text: chunk.text });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user