Skip to content

Modify basic.py for local model#1

Draft
everyoneelse wants to merge 2 commits intomainfrom
cursor/modify-basic-py-for-local-model-8a4a
Draft

Modify basic.py for local model#1
everyoneelse wants to merge 2 commits intomainfrom
cursor/modify-basic-py-for-local-model-8a4a

Conversation

@everyoneelse
Copy link
Owner

Enable local LLM support in examples/basic.py and provide a guide for local model configuration.

The original basic.py was hardcoded to use OpenAI GPT. This PR introduces configurable options for various local models (Ollama, HuggingFace, VLLM) to allow users to generate knowledge graphs without relying on external API services, fulfilling the request to use local models.


Open in Cursor Open in Web

Co-authored-by: mzthhy <mzthhy@gmail.com>
@cursor
Copy link

cursor bot commented Oct 16, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Update documentation and code to include and manage the max_tokens parameter for different models, improving error handling and user guidance.

Co-authored-by: mzthhy <mzthhy@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants