dola-seed-2-1-turbo-260628 Chat Completions
Invoke BytePlus chat completions capability.
Supported models include dola-seed-2-1-turbo-260628.
Documented fields: model, messages, stream, stream_options.include_usage, stream_options.chunk_include_usage, max_completion_tokens, response_format, frequency_penalty, presence_penalty, temperature, top_p, tools, parallel_tool_calls, tool_choice.messages[].content supports plain text; assistant messages support tool_calls.
Authorizations
Pass Authorization: Bearer <token> in the request header.
Body
BytePlus chat completions request body.
Model name. Supported BytePlus chat models include dola-seed-2-1-turbo-260628
dola-seed-2-1-turbo-260628 "dola-seed-2-1-turbo-260628"
Message list. This document exposes four roles: system, user, assistant, tool. messages[].content supports plain text.
1Whether to enable streaming output. When true, the response content type is text/event-stream.
Additional options for streaming response. Only effective when stream=true.
Maximum length of the model response, in tokens.
Controls the answer format (Beta).
Frequency penalty. The higher the value, the more it suppresses repetitive expressions.
-2 <= x <= 2Presence penalty. The higher the value, the more it encourages the model to introduce new topics.
-2 <= x <= 2Sampling temperature. Lower values make the output more stable, higher values make it more creative.
0 <= x <= 2Nucleus sampling parameter. Usually used as an alternative to temperature.
0 <= x <= 1List of function tool definitions available for the model to call.
Whether to allow the model to initiate multiple tool calls in parallel.
Tool calling strategy. Can be a string mode or an object specifying a specific function.
none, auto, required Response
Success. Returns JSON in non-streaming mode; SSE event stream in streaming mode.