Skip to content

Async errors #5

@luebken

Description

@luebken

When I'm running a fresh llm-consortium I get a couple of errors like the following:

2025-01-19 14:27:57,334 - llm_consortium - ERROR - Error in consortium command
Traceback (most recent call last):
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 584, in run_command
    result = loop.run_until_complete(orchestrator.orchestrate(prompt))
  File "/Users/xxx/.pyenv/versions/3.13.1/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 192, in orchestrate
    synthesis = await self._synthesize_responses(original_prompt, model_responses)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 342, in _synthesize_responses
    click.echo(await arbiter_response.text())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-01-19 14:35:20,414 - llm_consortium - ERROR - Error in consortium command
Traceback (most recent call last):
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 584, in run_command
    result = loop.run_until_complete(orchestrator.orchestrate(prompt))
  File "/Users/xxx/.pyenv/versions/3.13.1/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 192, in orchestrate
    synthesis = await self._synthesize_responses(original_prompt, model_responses)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 342, in _synthesize_responses
    click.echo(await arbiter_response.text())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object str can't be used in 'await' expression
Error: object str can't be used in 'await' expression


2025-01-19 14:40:24,274 - llm_consortium - ERROR - Error parsing arbiter response: object str can't be used in 'await' expression
2025-01-19 14:40:24,284 - llm_consortium - ERROR - Error in consortium command
Traceback (most recent call last):
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 347, in _synthesize_responses
    return self._parse_arbiter_response(await arbiter_response.text())
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object str can't be used in 'await' expression

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 584, in run_command
    result = loop.run_until_complete(orchestrator.orchestrate(prompt))
  File "/Users/xxx/.pyenv/versions/3.13.1/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 192, in orchestrate
    synthesis = await self._synthesize_responses(original_prompt, model_responses)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxx/workspace/llm-consortium/llm_consortium/__init__.py", line 351, in _synthesize_responses
    "synthesis": await arbiter_response.text(),
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object str can't be used in 'await' expression
Error: object str can't be used in 'await' expression

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions