Skip to content

feat(api): add Cyber access programs to Responses - #3952

Closed
marcuswood-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-147
Closed

marcuswood-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-147

Conversation

@marcuswood-oai

Copy link
Copy Markdown
Contributor

Summary

Adds typed support for selecting a Cyber access program when creating a response and inspecting the resolved program on response objects.

Changes

  • Add access_programs.cyber to response creation parameters
  • Expose the resolved Cyber access program on response models
  • Support standard, daybreak_blue, and daybreak_red values

Castiron-Internal-PR: openai/openai-python-internal#147
Castiron-Source-SHA: 214b17d6487e5a2fe199f67113d80b7c2a4e1eaa
Castiron-Public-Base-SHA: bfd3680
@github-actions

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

47 mixed files remain; 0 existing customizations changed; 5 generated baselines changed.

Compared bfd3680c8d3b → 18059155d336. Generated baselines verified.

File Result Current custom patch
src/openai/resources/beta/responses/responses.py Generated baseline changed +121 / −82
src/openai/resources/responses/responses.py Generated baseline changed +1007 / −112
src/openai/types/responses/response.py Generated baseline changed +16 / −0
src/openai/types/responses/responses_client_event.py Generated baseline changed +30 / −0
src/openai/types/responses/responses_client_event_param.py Generated baseline changed +30 / −0
42 existing customizations unchanged
  • api.md
  • scripts/castiron/README.md
  • scripts/castiron/custom_code_report.py
  • scripts/castiron/test_custom_code_report.py
  • src/openai/init.py
  • src/openai/_client.py
  • src/openai/resources/audio/transcriptions.py
  • src/openai/resources/audio/translations.py
  • src/openai/resources/beta/agents/sessions/sessions.py
  • src/openai/resources/beta/beta.py
  • src/openai/resources/beta/threads/runs/runs.py
  • src/openai/resources/beta/threads/threads.py
  • src/openai/resources/chat/completions/completions.py
  • src/openai/resources/embeddings.py
  • src/openai/resources/files.py
  • src/openai/resources/live/forks.py
  • src/openai/resources/live/live.py
  • src/openai/resources/live/sideband.py
  • src/openai/resources/realtime/api.md
  • src/openai/resources/realtime/realtime.py
  • src/openai/resources/uploads/uploads.py
  • src/openai/resources/vector_stores/file_batches.py
  • src/openai/resources/vector_stores/files.py
  • src/openai/resources/videos.py
  • src/openai/resources/webhooks/init.py
  • src/openai/resources/webhooks/webhooks.py
  • src/openai/types/beta/agent_session_message.py
  • src/openai/types/chat/init.py
  • src/openai/types/chat/chat_completion_message_tool_call.py
  • src/openai/types/fine_tuning/fine_tuning_job_integration.py
  • src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py
  • src/openai/types/realtime/realtime_error_event.py
  • src/openai/types/responses/init.py
  • src/openai/types/responses/response_function_web_search.py
  • src/openai/types/responses/response_function_web_search_param.py
  • src/openai/types/responses/tool.py
  • src/openai/types/responses/tool_param.py
  • src/openai/types/webhooks/init.py
  • src/openai/types/webhooks/live_call_incoming_webhook_event.py
  • src/openai/types/webhooks/unwrap_webhook_event.py

2 more in the full report.

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 35923845874 --repo openai/openai-python \
  --name castiron-custom-code-35923845874-1 --dir /tmp/castiron-custom-code-35923845874-1
git apply --stat /tmp/castiron-custom-code-35923845874-1/custom-code.patch
cat /tmp/castiron-custom-code-35923845874-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin bfd3680c8d3b715bb3175b82cd0fa1c1fb53162f 18059155d3364dab40f274e0d65a5dcd6a6ae6af
python3 scripts/castiron/custom_code_report.py report \
  --base bfd3680c8d3b715bb3175b82cd0fa1c1fb53162f \
  --head 18059155d3364dab40f274e0d65a5dcd6a6ae6af --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-18059155d336
cat /tmp/castiron-custom-code-18059155d336/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant