[Doc] Show how to get Responses prompt token IDs (#55912)
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
co-authored by
OpenAI Codex
parent
b0898a4937
commit
7d4bba5498
@@ -199,6 +199,11 @@ you can use the [official OpenAI Python client](https://github.com/openai/openai
|
||||
|
||||
Code example: [examples/tool_calling/openai_responses_client_with_tools.py](../../../examples/tool_calling/openai_responses_client_with_tools.py)
|
||||
|
||||
To get prompt token IDs before generation, use
|
||||
[`/v1/responses/render`](renderer.md#get-responses-prompt-token-ids). It preprocesses
|
||||
a self-contained Responses request without inference and returns the prompt
|
||||
token IDs, so a separate `/tokenize` call is not needed.
|
||||
|
||||
#### Extra parameters
|
||||
|
||||
The following extra parameters in the request object are supported:
|
||||
|
||||
Reference in New Issue
Block a user