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

Problem for chatlib library #3

Open
chrisyxue opened this issue Feb 7, 2024 · 6 comments
Open

Problem for chatlib library #3

chrisyxue opened this issue Feb 7, 2024 · 6 comments
Assignees

Comments

@chrisyxue
Copy link

Hi, great work! Could you please tell me how to install the chatlib library used in the chat.py as follows?

from chatlib.chatbot import TurnTakingChatSession
from chatlib import cli

I find a similar library at https://github.com/python-b5/chatlib.py, but it is not correct.

@chrisyxue
Copy link
Author

Some Updates.

I downloaded the library from https://github.com/yghokim/chatlib.git, but there is no file named openai_utils.

@yghokim
Copy link
Collaborator

yghokim commented Feb 8, 2024

Hi @chrisyxue, did you set up poetry and install dependencies through it, as guided in Readme?

@yghokim yghokim self-assigned this Feb 8, 2024
@chrisyxue
Copy link
Author

Thanks for your reply!

Yes. I followed the instructions from the Readme.

BTW, according to the poetry file, it shows
"""
[[package]]
name = "chatlib"
version = "0.5.29"
description = "A generalizable Python Chatbot Library"
optional = false
python-versions = "^3.10"
files = []
develop = false

[package.dependencies]
jinja2 = "^3.1.2"
jsonlines = "^3.1.0"
nanoid = "^2.0.0"
openai = "^0.27.8"
pendulum = "^2.1.2"
python-dotenv = "^1.0.0"
yaspin = "^2.3.0"

[package.source]
type = "git"
url = "https://github.com/yghokim/chatlib.git"
reference = "HEAD"
resolved_reference = "b29222d2f65582fe4f2475cc04c99c77977e498f"
"""

where the library source is https://github.com/yghokim/chatlib.git

@yghokim
Copy link
Collaborator

yghokim commented Feb 12, 2024

I've updated code in the main branch for more robust version tracking.
Can you pull the latest code and try again?

Also, please paste all your console messages so that I can figure out your issue in detail.

@chrisyxue
Copy link
Author

chrisyxue commented Feb 12, 2024

Hello. Thank you so much for the updates! I can run the chat.py now with the new codes!

However, I got an error like the attached figure and it was stucked, and I do not know what 'This event loop is already running' means. Could you please let me know what happened here? Thank you!

image

@yghokim
Copy link
Collaborator

yghokim commented Feb 13, 2024

Did you run setup.py and put your OpenAI API Key properly? It seems that an authorization routine runs during the chat process and causes an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants