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

Integrate with ChatGPT to provide guidance on how to write Casbin policy #122

Closed
hsluoyz opened this issue Jun 15, 2024 · 2 comments · Fixed by #126
Closed

Integrate with ChatGPT to provide guidance on how to write Casbin policy #122

hsluoyz opened this issue Jun 15, 2024 · 2 comments · Fixed by #126
Assignees
Labels
enhancement New feature or request released

Comments

@hsluoyz
Copy link
Member

hsluoyz commented Jun 15, 2024

We need to add a sidebar to show AI assistant, so the editor users can use AI to help them edit the Casbin policy.

Similar to Casdoor: https://door.casdoor.com/

image

image

The integrating code in Casdoor is at:

https://github.com/casdoor/casdoor/blob/4cc2120fed9c2b96955bf88f2f2d20190fd1435a/web/src/App.js#L297-L329

It's based on iframe to access the AI page: https://ai.casbin.com/ , which is powered by: https://github.com/casibase/casibase , another project from our community. You can view the code of that project if necessary.

A difference for this issue is that we want to provide more background info to the AI, like the model, policy, request, result of the editor. It's a deeper integration for editor than Casdoor's integration.

@casbin-bot
Copy link
Member

@nodece

@casbin-bot casbin-bot added the question Further information is requested label Jun 15, 2024
@hsluoyz hsluoyz added enhancement New feature or request and removed question Further information is requested labels Jun 15, 2024
@hsluoyz
Copy link
Member Author

hsluoyz commented Jun 25, 2024

🎉 This issue has been resolved in version 1.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
Development

Successfully merging a pull request may close this issue.

2 participants