Skip to content

Error when using GLM-5.2 via DigitalOcean: 'str object' has no attribute 'items' #34578

Description

@MSWEIMZ

Description

When using GLM-5.2 model through DigitalOcean provider, the request fails with a Python attribute error. The error suggests that a string is being passed where a dictionary/object is expected in the API request payload.

Error message:
Error from provider (DigitalOcean): 'str object' has no attribute 'items'

Turn execution failed
Provider rejected the model request.
provider=59a1a147-6163-4b9f-9a6a-e3c3d74db3f3 model=glm-5.2 request= reason=invalid_request status=400 retryable=false

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Configure GLM-5.2 model with DigitalOcean provider in Zcode
  2. Start a new conversation or send any message
  3. The request fails immediately with the above error

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

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