yoheinakajima / babyagi

https://babyagi.org/
20.08k stars 2.63k forks source link

Babycoder Error calling OpenAI #361

Closed xb3sox closed 2 days ago

xb3sox commented 1 year ago

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

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()