Skip to content

Question: Are there any plans to add hooks for run_model_stream at present? #129

@hanxuanliang

Description

@hanxuanliang

Reason: While rewriting run_model, it was found that it cannot be well integrated with the streaming return of Feishu card.
Scenario: When using kimi-for-coding in conjunction with the Anthropic endpoint, after rewriting run_model, an error occurred.

File "self/agent/agentx/pup/bub-rich/.venv/lib/python3.12/site-packages/bub/builtin/agent.py", line 194, in _agent_loop
    raise RuntimeError(outcome.error)
                       │       └ 'unknown: anthropic:kimi-for-coding: Streaming is required for operations that may take longer than 10 minutes. See https://g...
                       └ _ToolAutoOutcome(kind='error', text='', error='unknown: anthropic:kimi-for-coding: Streaming is required for operations that ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions