Skip to content
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

Uncaught TypeError: self.crypto.randomUUID is not a function when trying to generate a query using openAI #1051

Open
Mcamin opened this issue Oct 14, 2024 · 2 comments · May be fixed by #1052
Assignees
Labels
type/bug Something isn't working

Comments

@Mcamin
Copy link

Mcamin commented Oct 14, 2024

Environment Details

Installed last version of Grafana(11.2.0)
Installed last version of LLM plugin(0.10.9)
Installed last version of Azure Data Explorer data source for Grafana (5.0.7)
Configured the plugin with Azure OpenAI
with 2 Models Base / Large
Image

How to reproduce the problem:

  1. Create a Dashboard
  2. Create a Panel
  3. Use Azure Data Explorer Database as a Data Source
  4. Use the OpenAI option to generate a query
    Image
  5. Write something like "Get me 5 samples of the data" and click on Generate query
  6. A loading icon will appear inside the Generate query Button but nothing happens.
    Image
  7. The console logs show the following error:
    Image
@sd2k sd2k self-assigned this Oct 14, 2024
@sd2k sd2k transferred this issue from grafana/grafana-llm-app Oct 14, 2024
@sd2k
Copy link

sd2k commented Oct 14, 2024

Thanks for the report @Mcamin. I've transferred it to the repository for the datasource itself, which appears to be using a deprecated package for LLM support, but I'll work on a fix soon 👍

sd2k added a commit that referenced this issue Oct 14, 2024
The @grafana/experimental package is being deprecated so development
of LLM-related functionality has been moved to a separate package.

The API is exactly the same so this _should_ just work.

Fixes #1051.
@sd2k sd2k added the type/bug Something isn't working label Oct 14, 2024
@Mcamin
Copy link
Author

Mcamin commented Oct 15, 2024

@sd2k Thanks.

adamyeats pushed a commit that referenced this issue Oct 31, 2024
The @grafana/experimental package is being deprecated so development
of LLM-related functionality has been moved to a separate package.

The API is exactly the same so this _should_ just work.

Fixes #1051.
sd2k added a commit that referenced this issue Nov 5, 2024
The @grafana/experimental package is being deprecated so development
of LLM-related functionality has been moved to a separate package.

The API is exactly the same so this _should_ just work.

I've had to fix the resolution of some Grafana packages which were
otherwise being duplicated because the @grafana/llm package has quite
a loose dependency range; without this, we had both version 10.4.1 and
11.3.0 of the various Grafana packages (and all of their
subdependencies) which was causing tests to fail.

Fixes #1051.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants