Giter Club home page Giter Club logo

generative_agent_with_werewolf_kill's Introduction

generative_agent_with_werewolf_kill

save openai.key to the secret directory

python3 test.py

generative_agent_with_werewolf_kill's People

Contributors

yui-arthur avatar yeeecheng avatar pinpunyu avatar sunny1928 avatar

Watchers

 avatar

generative_agent_with_werewolf_kill's Issues

need update with openai api 1.0 version

current openai api key is global , so if create two agent with different api_json , the later created agent's api setting will override previous one , cause error when the previous one call openai.ChatCompletion.create , this problem is solve by openai api 1.0 but current is beta , not stable
2023-10-27 00-23-27

demo feature

server

  1. add new summary agent class in create function

agent

  1. update get agent info with guess roles is updated

agent class __game_over_process__ error

current game_over_process will not wait the api server end game , cause the room stage is still started when the game_over_process is called , let the agent server determination to delete the agent but agent will not quit room

the long_memory_stream class should use the same model

current long_memory_stream class create the SentenceTransformer for each class instance , it maybe cause performance issues, try turn the model became the class variable , every instance use the same model , bug in this case thread may cause other problem

update some agent func

agent :
game_over_process func called when game is over
skip_skip_stage func let agent skip the stage after send chat

server :
check the all created agent once in a while & delete the agent whose game is over

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.