Тест, свързан с ръководство · Среден Ниво
OpenAI Responses API vs Chat Completions Quiz
Compare current OpenAI endpoint guidance, request and response shapes, state options, built-in tools, model compatibility, and migration work.
Въпрос 1 на 8
Съгласно цитираната документация на OpenAI, как Responses могат да запазят контекста на разговора между ходовете?
Визуализирайте всеки въпрос8 въпроси
Отговорите и обясненията се появяват, докато отговаряте на теста.
- Съгласно цитираната документация на OpenAI, как Responses могат да запазят контекста на разговора между ходовете?
- Through options such as previous_response_id or the Conversations API
- Only by switching to Chat Completions
- Automatically across every API call and user
- By relying on the model to remember earlier requests
- Каква вградена възможност предлага Responses API, която преди това изискваше персонализирана имплементация в Chat Completions?
- Streaming text output
- Built-in tools such as web search and file search executed server-side
- Setting a system prompt
- Assigning roles to messages
- Как се различава формата на изхода на API за отговори от Chat Completions?
- It returns a single flat message just like Chat Completions
- It only ever returns tool call results, never text
- It can return multiple output items such as text, tool calls, and reasoning traces
- It removes the concept of roles entirely
- Какво казва OpenAI в момента за Chat Completions?
- It is already shut down
- It is required for all built-in tools
- It is the only API that supports text generation
- It remains supported, while Responses is recommended for new projects
- Какво трябва разработчикът да провери, преди да предположи, че дадена функция на API ще работи с конкретна модел?
- The model-specific endpoint and tool support in current docs
- Only the marketing name
- That every model supports all endpoints identically
- Whether another provider supports the feature
- In custom function calling under Chat Completions, who executes the requested function?
- OpenAI's servers execute it automatically
- The developer's own application code executes it and sends back the result
- The function runs inside the model's weights
- No execution is needed; the model fabricates a plausible result
- What does previous_response_id allow a developer to skip?
- Setting a system prompt
- Choosing a model name
- Resending the full conversation history on each request
- Enabling streaming
- Which task is part of a careful Chat Completions-to-Responses migration?
- Changing only the URL and assuming all fields match
- Removing application-level safety checks
- Assuming Responses retains no data
- Adapting input/output parsing and testing tools, streaming, errors, and storage settings