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

Add OpenAI plugin #1584

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add OpenAI plugin #1584

wants to merge 1 commit into from

Conversation

Liareth
Copy link
Member

@Liareth Liareth commented Feb 19, 2023

2023-02-19.20-08-17.mp4

This is a tech demo / prototype for using OpenAI in NWN. I won't be bringing this all the way, I just wanted to make a PR to share and serve as a reference for people working on making this type of feature production ready.

Next steps, if anyone wants to make this production ready:

  • We use httplib in two plugins (this and webhook), it needs to be moved to become a shared dependency
  • It would be nice if we could use ChatGPT API instead, which could make for higher quality results - there is no public API but check https://github.com/acheong08/ChatGPT for a reverse engineered reference

See NWNX discord thread for module (https://discord.com/channels/382306806866771978/1076960200898121889/1076973592220287127). Note that scripts in NWScript/Example are already included in the module, they're just duplicated here as well for easy reference.

@Liareth Liareth added RFE: plugin New feature or request RFC Discussion/proposal labels Feb 19, 2023
@mtijanic mtijanic added the wontfix This will not be worked on label Feb 19, 2023
@mtijanic
Copy link
Member

(as discussed on discord)

Plugins tied to a specific service - particularly proprietary ones - do not belong in the main repo, so we will not be merging this. It lives on as a PR and a branch on Liareth's repo so folks can use it however they see fit.

What we would merge is a generic async HTTP request/response plugin and a nwscript file that leverages it to talk to OpenAI (or ChatGPT, etc)

Also listed in Awesome-NWNX.md

@invictus2010
Copy link

hi there! how might i test this out?

is the best way:

  1. pull Liareth:liareth/openai
  2. fire it up as an NWNX instance on a VPS
  3. log-in via a local client to test it out

i'm on Discord so can chat there if you prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Discussion/proposal RFE: plugin New feature or request wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants