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

Running the Tutorial Notebook, facing this error #1015

Open
volkanunsal opened this issue Jan 16, 2025 · 7 comments
Open

Running the Tutorial Notebook, facing this error #1015

volkanunsal opened this issue Jan 16, 2025 · 7 comments

Comments

@volkanunsal
Copy link

Hi. I just created a tutorial notebook and tried running the first cell, and got this error below. Other scripts work.

run 3a284e38ddde: completed with -8
project: list scripts
.env: loading /Users/vu/.env.genaiscript
project: found 14 scripts
run 9bd037eabb12: starting notebook-cell-2
.env: loading /Users/vu/.env.genaiscript
genaiscript: notebook-cell-2
.env: loading /Users/vu/.env.genaiscript
 large: anthropic_bedrock:anthropic.claude-3-sonnet-20240229-v1:0 (env)
 small: anthropic_bedrock:anthropic.claude-3-sonnet-20240229-v1:0 (env)
 vision: anthropic_bedrock:anthropic.claude-3-sonnet-20240229-v1:0 (env)
 provider: anthropic_bedrock (env)
No LLM provider configured (see https://microsoft.github.io/genaiscript/getting-started/configuration/)
@pelikhan
Copy link
Member

Looking

Copy link

It seems like the error is indicating that no Language Model provider is configured. You need to set up an LLM provider in your configuration to resolve this issue.

AI-generated content by issue-reviewer may be incorrect

@pelikhan
Copy link
Member

when you take a simple genai script and run it with "Run GenAIScript", do you get the same error? @volkanunsal

@volkanunsal
Copy link
Author

Yes, I do now. Strange. This was working earlier. I think all I did was to remove the API keys for Google, and added these config variables:

export GENAISCRIPT_MODEL_LARGE="anthropic_bedrock:anthropic.claude-3-sonnet-20240229-v1:0"
export GENAISCRIPT_MODEL_SMALL="anthropic_bedrock:anthropic.claude-3-sonnet-20240229-v1:0"
export GENAISCRIPT_MODEL_VISION="anthropic_bedrock:anthropic.claude-3-sonnet-20240229-v1:0"

@volkanunsal
Copy link
Author

volkanunsal commented Jan 16, 2025

Update. I added the model name into the script({ ... }) block of a script, and it started working. Maybe only the default model configuration isn't working.

@volkanunsal
Copy link
Author

Sidenote: adding the model to the Markdown front matter didn't work.

title: Tutorial Notebook
genaiscript:
  model: anthropic_bedrock:anthropic.claude-3-sonnet-20240229-v1:0

@pelikhan
Copy link
Member

@volkanunsal try 1.93.0, the frontmatter now works

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