casbin / casbin-editor

Web-based model & policy editor for Casbin
https://editor.casbin.org
Apache License 2.0
87 stars 22 forks source link

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

Closed hsluoyz closed 3 months ago

hsluoyz commented 3 months ago

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 commented 3 months ago

@nodece

hsluoyz commented 3 months ago

:tada: This issue has been resolved in version 1.8.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: