Provider (select one):
Deepseek
PraisonAI 4.6.46
praisonai-tools 0.2.30
praisonaiagents 1.6.46
Operating System: Windows 11
Thank you for your open-source work! I encountered an issue when using the multi-agent feature: after starting the system, an error occurs immediately, and I'm not sure how to resolve it. The error message does not provide a clear clue (or I saw the error but don't know where to start). Could you please guide me or point out possible causes? Thank you very much!
Full Code
from praisonaiagents import Agent, Agents
research_agent = Agent(instructions="Research about AI")
summarise_agent = Agent(instructions="Summarise research agent's findings")
agents = Agents(agents=[research_agent, summarise_agent])
agents.start()
Error
[22:39:52] chat_mixin.py:852 ERROR Unified chat completion failed: Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for streaming support.
╭──────────────────────────────────────────────────── ⚠ Error ────────────────────────────────────────────────────╮
│ Unexpected error in chat: [llm] Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for │
│ streaming support. (agent: None, run: fd81cf21-1eef-4a49-87bd-4b8053fbb19a) │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[22:39:52] chat_mixin.py:852 ERROR Unified chat completion failed: Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for streaming support.
╭──────────────────────────────────────────────────── ⚠ Error ────────────────────────────────────────────────────╮
│ Unexpected error in chat: [llm] Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for │
│ streaming support. (agent: None, run: a6508b53-b646-45cf-a3b4-0f4c3a64e1f6) │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[22:39:52] chat_mixin.py:852 ERROR Unified chat completion failed: Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for streaming support.
╭──────────────────────────────────────────────────── ⚠ Error ────────────────────────────────────────────────────╮
│ Unexpected error in chat: [llm] Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for │
│ streaming support. (agent: None, run: de511b89-49ff-4b6c-8ece-67ba208b7503) │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ ✅ Workflow Complete ─╮
│ Total Time: 0.1s │
│ Agents Run: 2/2 │
Provider (select one):
Deepseek
PraisonAI 4.6.46
praisonai-tools 0.2.30
praisonaiagents 1.6.46
Operating System: Windows 11
Thank you for your open-source work! I encountered an issue when using the multi-agent feature: after starting the system, an error occurs immediately, and I'm not sure how to resolve it. The error message does not provide a clear clue (or I saw the error but don't know where to start). Could you please guide me or point out possible causes? Thank you very much!
Full Code
from praisonaiagents import Agent, Agents
research_agent = Agent(instructions="Research about AI")
summarise_agent = Agent(instructions="Summarise research agent's findings")
agents = Agents(agents=[research_agent, summarise_agent])
agents.start()
Error
[22:39:52] chat_mixin.py:852 ERROR Unified chat completion failed: Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for streaming support.
╭──────────────────────────────────────────────────── ⚠ Error ────────────────────────────────────────────────────╮
│ Unexpected error in chat: [llm] Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for │
│ streaming support. (agent: None, run: fd81cf21-1eef-4a49-87bd-4b8053fbb19a) │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[22:39:52] chat_mixin.py:852 ERROR Unified chat completion failed: Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for streaming support.
╭──────────────────────────────────────────────────── ⚠ Error ────────────────────────────────────────────────────╮
│ Unexpected error in chat: [llm] Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for │
│ streaming support. (agent: None, run: a6508b53-b646-45cf-a3b4-0f4c3a64e1f6) │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[22:39:52] chat_mixin.py:852 ERROR Unified chat completion failed: Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for streaming support.
╭──────────────────────────────────────────────────── ⚠ Error ────────────────────────────────────────────────────╮
│ Unexpected error in chat: [llm] Streaming is not supported in sync OpenAIAdapter. Use achat_completion() for │
│ streaming support. (agent: None, run: de511b89-49ff-4b6c-8ece-67ba208b7503) │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ ✅ Workflow Complete ─╮
│ Total Time: 0.1s │
│ Agents Run: 2/2 │