Skip to content

Update llm.rst #951

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

Merged
merged 1 commit into from
Mar 17, 2025
Merged

Update llm.rst #951

merged 1 commit into from
Mar 17, 2025

Conversation

garciasces
Copy link
Contributor

In latest version, if you don't add the model provider separated by a slash in front of the model name, this will return error.

 File ".venv/lib/python3.11/site-packages/scrapegraphai/graphs/abstract_graph.py", line 180, in _create_llm
    f"""Provider {llm_params['model_provider']} is not supported.
                  ~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'model_provider'

I tested adding "ollama/" in front of model name and it works. I assume this should be fixed for other providers too, but I haven't tested that personally.

In latest version, if you don't add the model provider separated by a slash in front of the model name, this will return error. 

 File ".venv/lib/python3.11/site-packages/scrapegraphai/graphs/abstract_graph.py", line 180, in _create_llm
    f"""Provider {llm_params['model_provider']} is not supported.
                  ~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'model_provider'

I tested adding "ollama/" in front of model name and it works. I assume this should be fixed for other providers too, but I haven't tested that personally.
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. documentation Improvements or additions to documentation labels Mar 16, 2025
Copy link
Collaborator

@VinciGit00 VinciGit00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 17, 2025
@VinciGit00 VinciGit00 merged commit 7c3e63f into ScrapeGraphAI:main Mar 17, 2025
4 checks passed
Copy link

🎉 This PR is included in version 1.43.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer released on @stable size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants