[GH-ISSUE #924] [BUG] chat/completions接口的messages.name参数似乎没起作用 #554

Closed
opened 2026-10-26 21:23:08 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @terloo on GitHub (Jun 30, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V3/issues/924

Describe the bug
chat/completions接口的messages.name参数看起来没传递到模型的上下文里面去,想让模型称呼用户的名字没有生效

To Reproduce

curl -L -X POST 'https://api.deepseek.com/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer sk-557xxxxxxxxx1f11781d29def5b' \
--data-raw '{
  "messages": [
    {
      "content": "You are a helpful assistant. Call user`s name before answer",
      "role": "system"
    },
    {
      "content": "Hi",
      "role": "user",
      "name": "Jack"
    }
  ],
  "model": "deepseek-chat",
  "frequency_penalty": 0,
  "max_tokens": 2048,
  "presence_penalty": 0,
  "response_format": {
    "type": "text"
  },
  "stop": null,
  "stream": false,
  "stream_options": null,
  "temperature": 1,
  "top_p": 1,
  "tools": null,
  "tool_choice": "none",
  "logprobs": false,
  "top_logprobs": null
}'

response:

{
  "id": "361c578d-0d01-405e-94e4-61661b09bad5",
  "object": "chat.completion",
  "created": 1751285361,
  "model": "deepseek-chat",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I assist you today? 😊"
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 16,
    "completion_tokens": 11,
    "total_tokens": 27,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "prompt_cache_hit_tokens": 0,
    "prompt_cache_miss_tokens": 16
  },
  "system_fingerprint": "fp_8802369eaa_prod0623_fp8_kvcache"
}
Originally created by @terloo on GitHub (Jun 30, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V3/issues/924 **Describe the bug** chat/completions接口的messages.name参数看起来没传递到模型的上下文里面去,想让模型称呼用户的名字没有生效 **To Reproduce** ```sh curl -L -X POST 'https://api.deepseek.com/chat/completions' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer sk-557xxxxxxxxx1f11781d29def5b' \ --data-raw '{ "messages": [ { "content": "You are a helpful assistant. Call user`s name before answer", "role": "system" }, { "content": "Hi", "role": "user", "name": "Jack" } ], "model": "deepseek-chat", "frequency_penalty": 0, "max_tokens": 2048, "presence_penalty": 0, "response_format": { "type": "text" }, "stop": null, "stream": false, "stream_options": null, "temperature": 1, "top_p": 1, "tools": null, "tool_choice": "none", "logprobs": false, "top_logprobs": null }' ``` **response:** ```json { "id": "361c578d-0d01-405e-94e4-61661b09bad5", "object": "chat.completion", "created": 1751285361, "model": "deepseek-chat", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Hello! How can I assist you today? 😊" }, "logprobs": null, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 16, "completion_tokens": 11, "total_tokens": 27, "prompt_tokens_details": { "cached_tokens": 0 }, "prompt_cache_hit_tokens": 0, "prompt_cache_miss_tokens": 16 }, "system_fingerprint": "fp_8802369eaa_prod0623_fp8_kvcache" } ```
bsakaguchi 2026-10-26 21:23:08 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 1, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!

<!-- gh-comment-id:3141724485 --> @github-actions[bot] commented on GitHub (Aug 1, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
Author
Owner

@github-actions[bot] commented on GitHub (Aug 16, 2025):

false

<!-- gh-comment-id:3193049608 --> @github-actions[bot] commented on GitHub (Aug 16, 2025): false
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-V3#554
No description provided.