-
-
Notifications
You must be signed in to change notification settings - Fork 920
Add OpenAI integration with CLI for generating Mermaid diagrams. #8
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
Conversation
@BaoLiqi is attempting to deploy a commit to the Ahmed Khaleel's projects Team on Vercel. A member of the Team first needs to authorize it. |
backend/cli/local_git.py
Outdated
excluded_patterns = [ | ||
'node_modules', 'vendor', 'venv', | ||
'.min.', '.pyc', '.pyo', '.pyd', '.so', '.dll', '.class', ".o", | ||
'.jpg', '.jpeg', '.png', '.gif', '.ico', '.svg', '.ttf', '.woff', '.webp', | ||
'.pdf', '.xml', '.wav', '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', ".txt", ".log", | ||
'__pycache__', '.cache', '.tmp', | ||
'yarn.lock', 'poetry.lock', | ||
'.vscode', '.idea', '.git', "test", "activate" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be an idea to respect the local .gitignore
contents as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the feedback! 👍 I’ve gone ahead and updated the code to respect the local .gitignore contents.
I used the model 'deepseek/deepseek-chat' and found it unstable. I'm not sure why. After you removed the README file, did the results become stable? |
No, it did not. Occasionally, deepseek-chat even produced incorrect Mermaid syntax. I employed this model to test my code because it is cost-effective. For better stability, you can opt for more reliable models. |
this is great work but I've just changed a lot including optimizing the app to be used with the much cheaper, faster, smarter OpenAI o3-mini (from openrouter since I don't have the tier 3 key). I think a CLI would be a nice to have but probably has to be reimplemented all over again now |
#5 #4
I tested my fork with the model 'deepseek/deepseek-chat' on OpenRouter.
It seems that the generated diagram is heavily influenced by the contents of the README file, as my changes did not appear in the output.
To confirm this, I removed my local README file, tested again, and obtained the following diagram, which looks improved.