Giter Site home page Giter Site logo

Comments (3)

p3r7 avatar p3r7 commented on July 26, 2024

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.

MerlinTheProgramist avatar MerlinTheProgramist commented on July 26, 2024

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.

p3r7 avatar p3r7 commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.