mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-16 17:09:09 +00:00
fix(types): type memory skills injection logger (#8816)
This commit is contained in:
@@ -5,6 +5,8 @@ import { injectSkills } from "@/lib/skills/injection";
|
||||
import { FORMATS } from "../../translator/formats.ts";
|
||||
import { detectCachingContext } from "../../services/compression/cachingAware.ts";
|
||||
|
||||
type MemorySkillsLogger = { debug?: (...args: unknown[]) => void } | null | undefined;
|
||||
|
||||
export function getSkillsProviderForFormat(format: string): "openai" | "anthropic" | "google" | "other" {
|
||||
switch (format) {
|
||||
case FORMATS.CLAUDE:
|
||||
@@ -33,7 +35,7 @@ export async function injectMemoryAndSkills({
|
||||
sourceFormat: string;
|
||||
targetFormat: string;
|
||||
backgroundReason: string | null;
|
||||
log: unknown;
|
||||
log: MemorySkillsLogger;
|
||||
}) {
|
||||
const memorySettings = memoryOwnerId
|
||||
? await getMemorySettings().catch(() => DEFAULT_MEMORY_SETTINGS)
|
||||
|
||||
Reference in New Issue
Block a user