explainers-by-googlers / prompt-api

A proposal for a web API for prompting browser-provided language models
Creative Commons Attribution 4.0 International
266 stars 20 forks source link

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

Closed hexaeight closed 1 week ago

hexaeight commented 2 weeks ago

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

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 commented 2 weeks ago

Thanks, there are several reports of this: https://issues.chromium.org/issues?q=%22Other%20generic%20failures%20occurred%22. Can you add your information to the one that looks the most like yours? Thank you!

Cheers, Tom

On Sun, Nov 10, 2024, 02:38 hexaeight @.***> wrote:

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 https://github.com/user-attachments/files/17689862/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.

— Reply to this email directly, view it on GitHub https://github.com/explainers-by-googlers/prompt-api/issues/57, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDSDEDT6IOMT4S4ZK4ECTZ722JDAVCNFSM6AAAAABRPVU4MCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY2DMNZQHEZTINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hexaeight commented 2 weeks ago

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 commented 2 weeks ago

I would add it to an open one, and then link to it in a new comment on the closed one, saying that maybe the issue isn't fixed in all cases.

On Sun, Nov 10, 2024, 08:19 hexaeight @.***> wrote:

Thanks for your info, The closest one is 351926207 https://issues.chromium.org/issues/351926207 but it shows as fixed, Do you want me to add it to the fixed one?

— Reply to this email directly, view it on GitHub https://github.com/explainers-by-googlers/prompt-api/issues/57#issuecomment-2466619321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDSDHY4GDZD2T2FIWJX3TZ74CHPAVCNFSM6AAAAABRPVU4MCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRWGYYTSMZSGE . You are receiving this because you commented.Message ID: @.***>

hexaeight commented 2 weeks ago

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

Thanks

domenic commented 1 week ago

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