Skip to content

multimodel inputs for image does not work #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
qkl9527 opened this issue Mar 26, 2025 · 2 comments
Closed

multimodel inputs for image does not work #88

qkl9527 opened this issue Mar 26, 2025 · 2 comments

Comments

@qkl9527
Copy link

qkl9527 commented Mar 26, 2025

dev env:
Google chrome canary 136.0.7089.0
Optimization Guide On Device Model: 2024.9.25.2033

const session = await ai.languageModel.create({
  expectedInputs: [
    { type: "image" }
  ]
});

# use HTMLImageElement
const userDrawnImage = document.querySelector(".testpng");

const response1 = await session.prompt([
  "explain this image:",
  { type: "image", content: userDrawnImage }
]);

console.log(response1);

response1 state is pending for a long time,No error reported

@qkl9527
Copy link
Author

qkl9527 commented Mar 26, 2025

sometime report errror: Uncaught (in promise)AbortError: The request was cancelled.

@domenic
Copy link
Collaborator

domenic commented Mar 26, 2025

This appears to be a bug report against a specific browser, instead of an issue with this explainer. Please open it on that browser's bug tracker instead.

@domenic domenic closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants