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

Babycoder Error calling OpenAI #361

Open
xb3sox opened this issue Aug 30, 2023 · 0 comments
Open

Babycoder Error calling OpenAI #361

xb3sox opened this issue Aug 30, 2023 · 0 comments

Comments

@xb3sox
Copy link

xb3sox commented Aug 30, 2023

Tring to fix this error on babycoder, any idea how?

I'm using the text generation web ui API extension for OpenAI. which look like this:
OPENAI_API_BASE=https://127.0.0.1:5001/v1

it worked with babyagi.py but with babycoder it shows this error:

Working on tasks

  • Creating initial tasks
    Error calling OpenAI. Retrying 1 of 3...
    Error calling OpenAI. Retrying 2 of 3...
    Error calling OpenAI. Retrying 3 of 3...
  • Reviewing and refactoring tasks to fit agents
  • Adding relevant technical details to the tasks
  • Adding necessary context to the tasks

TASKS
Traceback (most recent call last):
File "D:\Programs\AI\Agents\babyagi\babycoder\babycoder.py", line 497, in
print_char_by_char(task_agent_output, 0.00000001, 10)
File "D:\Programs\AI\Agents\babyagi\babycoder\babycoder.py", line 58, in print_char_by_char
for i in range(0, len(text), chars_at_once):
^^^^^^^^^
TypeError: object of type 'NoneType' has no len()

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

1 participant