Skip to content

Использование Gigachat API в All-Hands-AI/OpenHands #264

@Webbrother

Description

@Webbrother

Добрый день!
Подскажите пожалуйста как использовать All-Hands-AI/OpenHands с API Gigachat?

Настройки:

Custom Model: GigaChat-2-Max
Base URL: https://gigachat.devices.sberbank.ru/
Agent: CodeActAgent

Запускаю All-Hands-AI/OpenHands локально в докере.
Получаю следующую ошибку:

09:14:05 - openhands:INFO: session.py:229 - Agent status error
09:14:05 - OBSERVATION
[Agent Controller 2877ca919a614534a4aca5592f82bbb3] AgentStateChangedObservation(content='', agent_state='running', reason='', observation=<ObservationType.AGENT_STATE_CHANGED: 'agent_state_changed'>)
09:14:05 - OBSERVATION
[Agent Controller 2877ca919a614534a4aca5592f82bbb3] AgentStateChangedObservation(content='', agent_state='error', reason="BadRequestError: litellm.BadRequestError: LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model=GigaChat-2-Max\n Pass model as E.g. For 'Huggingface' inference endpoints pass in `completion(model='huggingface/starcoder',..)` Learn more: https://docs.litellm.ai/docs/providers", observation=<ObservationType.AGENT_STATE_CHANGED: 'agent_state_changed'>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions