Skip to content

Pi sends wrong thinking parameters for zai provider #5330

@CGamesPlay

Description

@CGamesPlay

What happened?

Pi is sending enable_thinking to zai. The correct parameter is thinking.type. As a result, thinking is always left as the default (enabled).

Steps to reproduce

  1. Use the zai provider, thinking disabled. Send any message.
  2. Notice that the model is thinking.

Expected behavior

Disabling thinking in pi should disable thinking.

Happy to send a PR to fix this, it's a 1-line change.

Version

master

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginprogressIssue is being worked on

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