babyagi icon indicating copy to clipboard operation
babyagi copied to clipboard

Babycoder Error calling OpenAI

Open xb3sox opened this issue 1 year ago • 0 comments

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

xb3sox avatar Aug 30 '23 20:08 xb3sox