Skip to content

Prompt api throws Uncaught UnknownError: Other generic failures occurred. #57

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
hexaeight opened this issue Nov 10, 2024 · 5 comments
Closed

Comments

@hexaeight
Copy link

Chrome Developer version:
Chrome is up to date
Version 132.0.6821.2 (Official Build) dev (64-bit)

The GPU report has been added.

Graphics Feature Status

  • Canvas: Hardware accelerated
  • Canvas out-of-process rasterization: Enabled
  • Direct Rendering Display Compositor: Disabled
  • Compositing: Hardware accelerated
  • Multiple Raster Threads: Enabled
  • OpenGL: Enabled
  • Rasterization: Hardware accelerated on all pages
  • Raw Draw: Disabled
  • Skia Graphite: Enabled
  • Video Decode: Hardware accelerated
  • Video Encode: Hardware accelerated
  • Vulkan: Disabled
  • WebGL: Hardware accelerated
  • WebGL2: Hardware accelerated
  • WebGPU: Hardware accelerated
  • WebNN: Enabled

about-gpu-2024-11-10T01-24-11-983Z.txt

Below is the error when the prompt api is tried on the console

await ai.languageModel.capabilities();
AILanguageModelCapabilities {available: 'readily', defaultTopK: 3, maxTopK: 8, defaultTemperature: 1}available: "readily"defaultTemperature: 1defaultTopK: 3maxTopK: 8[[Prototype]]: AILanguageModelCapabilities
const aisession2 = await ai.languageModel.create();

undefined
await aisession2.prompt("Write a poem");
Uncaught UnknownError: Other generic failures occurred.Understand this errorAI
aisession2
AILanguageModel {maxTokens: 4096, tokensSoFar: 0, tokensLeft: 4096, topK: 3, temperature: 1}maxTokens: 4096temperature: 1tokensLeft: 4096tokensSoFar: 0topK: 3[[Prototype]]: AILanguageModel
await aisession2.prompt("Write a poem");
Uncaught UnknownError: Other generic failures occurred.
@tomayac
Copy link
Contributor

tomayac commented Nov 10, 2024 via email

@hexaeight
Copy link
Author

Thanks for your info, The closest one is 351926207 but it shows as fixed, Do you want me to add it to the fixed one?

@tomayac
Copy link
Contributor

tomayac commented Nov 10, 2024 via email

@hexaeight
Copy link
Author

Ok, I have created a new bug https://issues.chromium.org/issues/378229886 and linked to https://issues.chromium.org/issues/351926207

Thanks

@domenic
Copy link
Collaborator

domenic commented Nov 13, 2024

Closing as this does not appear to be a bug with the specification, but instead with the Chromium implemnetation.

@domenic domenic closed this as completed Nov 13, 2024
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

3 participants