fixes model initialization for mlx

This commit is contained in:
geoffsee
2025-06-18 13:30:38 -04:00
parent 38b364caeb
commit f1d7f52dbd
12 changed files with 127 additions and 81 deletions

View File

@@ -35,8 +35,8 @@ export class ChatSdk {
const preprocessedContext = await ChatSdk.preprocess({
messages,
});
console.log(ctx.env)
console.log(ctx.env.SERVER_COORDINATOR);
// console.log(ctx.env)
// console.log(ctx.env.SERVER_COORDINATOR);
const objectId = ctx.env.SERVER_COORDINATOR.idFromName("stream-index");
const durableObject = ctx.env.SERVER_COORDINATOR.get(objectId);