Skip to content

[Bug]: GENERATION_FAILED (fp: 3bb50f8c) #316

@Tilmirs

Description

@Tilmirs

Description

使用deepseek 报错

Steps to reproduce

1 Access to the third-party APIKEY
2 Calling deepseek directly reports an error after use, other models can1 Access to the third-party APIKEY
2 Calling deepseek directly reports an error after use, other models can

Expected behavior

正常可以使用

Actual behavior

Error invoking remote method 'codesign:v1:generate': CodesignError: 400 Failed to deserialize the JSON body into the target type: messages[0].role: unknown variant developer, expected one of system, user, assistant, tool, latest_reminder at line 1 column 51783 — user notes: 接入三方deespseek的api报错

open-codesign version

0.1.4

Platform

Windows

OS version

Windows 11 (10.0.26200)

Model provider (if relevant)

None

Error code

GENERATION_FAILED

Diagnostics bundle

Bundle saved locally at ~\Downloads\open-codesign-diagnostics-2026-05-08T10-56-22.zip. Attach it to this issue after submitting.

Logs

[2026-05-08 18:55:43.568] [info]   (main:ipc) [generate] step=send_request {
  runId: 'mowsu8cu-sp7u7r',
  generationId: 'mowsu8cu-sp7u7r',
  provider: 'custom-my-rm9m',
  modelId: 'deepseek-v4-pro'
}
[2026-05-08 18:55:43.569] [info]   (main:ipc) agent.turn_start { runId: 'mowsu8cu-sp7u7r', generationId: 'mowsu8cu-sp7u7r' }
[2026-05-08 18:55:43.570] [info]   (main:ipc) [context-prune] step=caps {
  runId: 'mowsu8cu-sp7u7r',
  generationId: 'mowsu8cu-sp7u7r',
  messages: 6,
  before: 1681,
  after: 1681,
  textLimit: 8192,
  toolInputLimit: 24576,
  toolResultLimit: 8192,
  window: 3
}
[2026-05-08 18:55:44.438] [info]   (main:ipc) agent.turn_end {
  runId: 'mowsu8cu-sp7u7r',
  generationId: 'mowsu8cu-sp7u7r',
  deltas: 0,
  tools: 0
}
[2026-05-08 18:55:44.441] [info]   (main:ipc) agent.end { runId: 'mowsu8cu-sp7u7r', generationId: 'mowsu8cu-sp7u7r' }
[2026-05-08 18:55:44.442] [error]  (main:ipc) [generate] step=send_request.fail {
  runId: 'mowsu8cu-sp7u7r',
  generationId: 'mowsu8cu-sp7u7r',
  provider: 'custom-my-rm9m',
  modelId: 'deepseek-v4-pro',
  ms: 873,
  stopReason: 'error'
}
[2026-05-08 18:55:44.443] [error]  (main:ipc) generate.fail {
  runId: 'mowsu8cu-sp7u7r',
  generationId: 'mowsu8cu-sp7u7r',
  ms: 879,
  provider: 'custom-my-rm9m',
  modelId: 'deepseek-v4-pro',
  baseUrl: '[url omitted]',
  status: 400,
  message: '400 Failed to deserialize the JSON body into the target type: messages[0].role: unknown variant `developer`, expected one of `system`, `user`, `assistant`, `tool`, `latest_reminder` at line 1 column 51783',
  code: 'PROVIDER_ERROR'
}
[2026-05-08 18:55:44.451] [error]  (renderer:console) [store] applyGenerateError {"generationId":"mowsu8cu-sp7u7r","designId":"d3717869-6632-4490-86ff-eabd70e37bb1","message":"Error invoking remote method 'codesign:v1:generate': CodesignError: 400 Failed to deserialize the JSON body into the target type: messages[0].role: unknown variant `developer`, expected one of `system`, `user`, `assistant`, `tool`, `latest_reminder` at line 1 column 51783"} {}
[2026-05-08 18:55:44.453] [info]   (chat-messages-ipc) chat.append {
  designId: 'd3717869-6632-4490-86ff-eabd70e37bb1',
  seq: 8,
  kind: 'error'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting maintainer review

    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