I noticed when updating my code to point to gpt-5-mini from gpt-4.1-mini all of the citation links that were rendered properly using gpt-4.1-mini are no longer working. There is what appears to be an internal citation of where to inject the citation but its missing?
This is the python code for the responses call. Only line I am changing is the model from 4.1 to 5
# Determine if web search should be enabled
tools = [{"type": "web_search_preview"}] if not persona_cfg.get('disable_web_search', False) else []
# Structured output schema for the poll
POLL_SCHEMA = {
"type": "object",
"properties": {
"question": { "type": "string", "maxLength": 250 },
"options": {
"type": "array",
"items": { "type": "string" },
"minItems": 2,
"maxItems": 5
},
"description": { "type": "string", "maxLength": 5000 }
},
"required": ["question", "options", "description"],
"additionalProperties": False
}
response = client.responses.create(
model="gpt-4.1-mini",
tools=tools,
input=prompt,
text = {
"format": {
"type": "json_schema",
"name": "poll",
"schema": POLL_SCHEMA,
"strict": True
}
}
)
output_text = response.output_text
print(response)
print(f"Output text: {output_text}")
Both calls succeed however, I see these markers: \ue200cite\ue202turn0search3\ue201
, \ue200cite\ue202turn0academia8\ue201
, \ue200cite\ue202turn2search0\ue202turn0news12\ue201
, etc. everywhere in the gpt-5-mini output compared to them being non existent in the gpt-4.1-mini output. The gpt-5-mini includes no links but the gpt-4.1-mini correctly embeds the links as markdown for rendering
Any suggestions here? My assumption is its something with the structured output limiting the models ability to inject the correct citation?