Skip to content

LLM call fails with 400 error: glm-4.7 is not a valid model ID #199

@SrikanthBhandary

Description

@SrikanthBhandary

When running the Picoclaw agent with a simple CLI message, the agent initializes correctly but fails during the first LLM call. The API returns a 400 error indicating that the configured model ID glm-4.7 is invalid. I'm using open router api keys.

Steps to Reproduce

Run the agent with a CLI message:

picoclaw agent -m "Hello!"

Observe logs during message processing.

Expected Behavior

The agent should successfully call the LLM and return a response to "Hello!".

Actual Behavior

The agent fails on the first LLM call with an API error:

Status: 400
Body: {"error":{"message":"glm-4.7 is not a valid model ID","code":400}}

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