Comments (3)
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.
from ai-dungeon-cli.
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?
from ai-dungeon-cli.
So with the gql package import, it is some other problem, independent of that I'm trying to run it with conda?
Yes.
The error message you get is due to breaking changes that were made to the gql
package. f311141 fixes it but we didn't publish a new release on PyPI as there are other things to fix to make it work (the idea being to not publish a non-working version).
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'
And it will be kind of hard to fix it myself?
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)
from ai-dungeon-cli.
Related Issues (20)
- Implement login support. HOT 2
- readline broke OSX build HOT 4
- Need for CI tests
- Need poetry integration HOT 2
- Does not load even though dependencies are satisfied HOT 8
- Crash when input is empty HOT 1
- Port to newest API HOT 31
- auth_token not working HOT 1
- Ask politely maintainers / dev for permission HOT 6
- Debug is true in production HOT 2
- Update to latest API revision / externalized API client lib HOT 12
- Support multiplayer mode HOT 4
- Feature request for undo/redo/retry... HOT 3
- Crash when using --slow-typing HOT 2
- GQL pip version filter matches alpha4 causing a BC break HOT 4
- error message at launch HOT 4
- ImportError: cannot import name 'WebsocketsTransport' from 'gql' HOT 3
- Issue with stuff that i don't understand HOT 1
- New Release request HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-dungeon-cli.