-
Notifications
You must be signed in to change notification settings - Fork 33
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
Is this pip package was ever working? #35
Comments
Yes, this used to work but stopped due to regular API changes, see #29. As far as I know, pypi packages don’t run under conda. So if you want to use conda you’d have to git clone the repo. If you’ve got some programming chops, we welcome contributions on adapting to the newest API. The timing might not be ideal, though, given the ongoing war around content moderation. The API is likely to change (again) as things settle down. |
So with the gql package import, it is some other problem, independent of that I'm trying to run it with conda? And it will be kind of hard to fix it myself? |
Yes. The error message you get is due to breaking changes that were made to the Namely, the play.aidungeon.io API changed and we need to adapt to these changes. This the error you should be getting when running from git cloned sources (instead of pip installed). Traceback (most recent call last):
File "./ai_dungeon_cli/__init__.py", line 393, in <module>
main()
File "./ai_dungeon_cli/__init__.py", line 356, in main
ai_dungeon.make_user_choose_config()
File "./ai_dungeon_cli/__init__.py", line 177, in make_user_choose_config
prompt, settings = self.api.get_options(self.api.single_player_mode_id)
File "/home/eigen/Documents/Code/local/ai-dungeon-cli/ai_dungeon_cli/impl/api/client.py", line 124, in get_options
prompt = result['content']['prompt']
KeyError: 'content'
It's not that hard. It consists of running AI Dungeon in a web browser, inspect the exchanges in developper mode and reproduce the exchanges in impl/api/client.py. This comment is an example of the process: #23 (comment) |
When I install via the pip package manager I don't get the conda yml file as it is contained in the GitHub files. So I can't start the environment. The second thing that I'm experiencing is when I run ai-dungeon-cli I get some errors from the code itself about libraries not containing things, or this is not right until I install the env in conda.
The text was updated successfully, but these errors were encountered: