The official Python library for the OpenAI API
This report summarizes scanner evidence for openai/openai-python, a Python project with 31,796 GitHub stars. SynthScan examined 329,897 lines of code across 2356 source files, recording 16784 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 170.4 (High pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 3244 finding(s).
Are imports declared and package/API names verified? 5703 finding(s).
Are wrappers, guards, and repeated structures necessary? 10862 finding(s).
Which changes need focused human review? 16784 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 16784 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/openai/_response.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. | STRING |
| HIGH | src/openai/_streaming.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. | STRING |
| HIGH | src/openai/lib/streaming/chat/_completions.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. | STRING |
| HIGH | src/openai/lib/streaming/responses/_responses.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. | STRING |
| HIGH | src/openai/_client.py | 0 | use uploads to upload large files in multiple parts. | STRING |
| HIGH | src/openai/resources/uploads/parts.py | 0 | use uploads to upload large files in multiple parts. | STRING |
| HIGH | src/openai/resources/uploads/uploads.py | 0 | use uploads to upload large files in multiple parts. | STRING |
| HIGH | src/openai/types/video_create_error.py | 0 | an optional classification; clients must accept additional values. | STRING |
| HIGH | src/openai/types/beta/beta_response_error.py | 0 | an optional classification; clients must accept additional values. | STRING |
| HIGH | src/openai/types/beta/beta_responses_server_event.py | 0 | an optional classification; clients must accept additional values. | STRING |
| HIGH | src/openai/types/responses/responses_server_event.py | 0 | an optional classification; clients must accept additional values. | STRING |
| HIGH | src/openai/types/responses/response_error.py | 0 | an optional classification; clients must accept additional values. | STRING |
| HIGH | src/openai/types/shared/error_object.py | 0 | an optional classification; clients must accept additional values. | STRING |
| HIGH | src/openai/types/video_create_error.py | 0 | an opaque target for explicitly continuing this review, or null when unavailable. | STRING |
| HIGH | src/openai/types/beta/beta_response_error.py | 0 | an opaque target for explicitly continuing this review, or null when unavailable. | STRING |
| HIGH | src/openai/types/beta/beta_responses_server_event.py | 0 | an opaque target for explicitly continuing this review, or null when unavailable. | STRING |
| HIGH | src/openai/types/responses/responses_server_event.py | 0 | an opaque target for explicitly continuing this review, or null when unavailable. | STRING |
| HIGH | src/openai/types/responses/response_error.py | 0 | an opaque target for explicitly continuing this review, or null when unavailable. | STRING |
| HIGH | src/openai/types/shared/error_object.py | 0 | an opaque target for explicitly continuing this review, or null when unavailable. | STRING |
| HIGH | src/openai/types/eval_retrieve_response.py | 0 | a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase= | STRING |
| HIGH | src/openai/types/eval_list_response.py | 0 | a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase= | STRING |
| HIGH | src/openai/types/eval_update_response.py | 0 | a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase= | STRING |
| HIGH | src/openai/types/eval_create_response.py | 0 | a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase= | STRING |
| HIGH | src/openai/types/eval_retrieve_response.py | 0 | the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/). | STRING |
| HIGH | src/openai/types/eval_list_response.py | 0 | the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/). | STRING |
| HIGH | src/openai/types/eval_update_response.py | 0 | the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/). | STRING |
| HIGH | src/openai/types/eval_custom_data_source_config.py | 0 | the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/). | STRING |
| HIGH | src/openai/types/eval_create_response.py | 0 | the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/). | STRING |
| HIGH | …ai/types/eval_stored_completions_data_source_config.py | 0 | the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/). | STRING |
| HIGH | src/openai/types/eval_retrieve_response.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/vector_store_create_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/batch_create_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/eval_update_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/vector_store.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/eval_create_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/batch.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/vector_store_update_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/eval_list_response.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/eval_update_response.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/eval_create_response.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | …ai/types/eval_stored_completions_data_source_config.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/thread.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/thread_update_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/thread_create_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/assistant.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/beta_responses_client_event.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | …openai/types/beta/beta_responses_client_event_param.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/response_create_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/assistant_create_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/beta_response.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/assistant_update_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/thread_create_and_run_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/realtime/realtime_response.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | …nai/types/beta/realtime/response_create_event_param.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/realtime/response_create_event.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/threads/run.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/threads/message_update_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/threads/run_create_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/threads/run_update_params.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| HIGH | src/openai/types/beta/threads/message.py | 0 | set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information about | STRING |
| 5848 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | helpers.md | 706 | prepared = client.beta.agents.environments.files.prepare({ | CODE |
| CRITICAL | helpers.md | 718 | artifacts = client.beta.agents.sessions.artifacts.for_result(result) | CODE |
| CRITICAL | tests/test_agent_session_environment_reset.py | 49 | with client.beta.agents.sessions.events.stream("session_synthetic") as stream: | CODE |
| CRITICAL | tests/test_agent_session_environment_reset.py | 60 | async with await async_client.beta.agents.sessions.events.stream("session_synthetic") as async_stream: | CODE |
| CRITICAL | tests/test_agent_session_environment_reset.py | 117 | with client.beta.agents.sessions.events.stream("session_synthetic") as stream: | CODE |
| CRITICAL | tests/test_agent_session_environment_reset.py | 128 | async with await async_client.beta.agents.sessions.events.stream("session_synthetic") as async_stream: | CODE |
| CRITICAL | tests/test_agents_environment_token_page.py | 53 | page = client.beta.agents.environments.files.list( | CODE |
| CRITICAL | tests/test_agents_environment_token_page.py | 73 | page = await client.beta.agents.environments.files.list( | CODE |
| CRITICAL⚡ | tests/test_agent_session_update.py | 36 | client.beta.agents.sessions.with_raw_response.update("session_test", **body) | CODE |
| CRITICAL⚡ | tests/test_agent_session_update.py | 53 | await async_client.beta.agents.sessions.with_raw_response.update("session_test", **body) | CODE |
| CRITICAL | tests/test_environment_credentials.py | 94 | credential = client.beta.agents.vaults.credentials.create( | CODE |
| CRITICAL | tests/test_environment_credentials.py | 107 | credential = await async_client.beta.agents.vaults.credentials.create( | CODE |
| CRITICAL | tests/test_environment_credentials.py | 149 | credential = client.beta.agents.vaults.credentials.update( | CODE |
| CRITICAL | tests/test_environment_credentials.py | 162 | credential = await async_client.beta.agents.vaults.credentials.update( | CODE |
| CRITICAL | tests/test_environment_credentials.py | 205 | credential = client.beta.agents.vaults.credentials.create( | CODE |
| CRITICAL | tests/test_environment_credentials.py | 216 | credential = await async_client.beta.agents.vaults.credentials.create( | CODE |
| CRITICAL⚡ | tests/test_agent_turn_items_pagination.py | 54 | client.beta.agents.sessions.turns.items.list("turn_test", session_id="session_test", order="asc", limit=1) | CODE |
| CRITICAL⚡ | tests/test_agent_turn_items_pagination.py | 71 | page = await client.beta.agents.sessions.turns.items.list( | CODE |
| CRITICAL | tests/test_vault_metadata_filters.py | 21 | client.beta.agents.vaults.credentials.list("vault_test", metadata={"state": ""}) | CODE |
| CRITICAL | tests/test_vault_metadata_filters.py | 44 | await client.beta.agents.vaults.credentials.list("vault_test", metadata={"state": ""}) | CODE |
| CRITICAL⚡ | tests/lib/test_fine_tuning_positional_arguments.py | 35 | response = client.fine_tuning.jobs.checkpoints.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/lib/test_fine_tuning_positional_arguments.py | 46 | with client.fine_tuning.jobs.checkpoints.with_streaming_response.list( | CODE |
| CRITICAL | tests/lib/test_fine_tuning_positional_arguments.py | 60 | client.fine_tuning.jobs.checkpoints.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/lib/test_fine_tuning_positional_arguments.py | 88 | response = await async_client.fine_tuning.jobs.checkpoints.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/lib/test_fine_tuning_positional_arguments.py | 99 | async with async_client.fine_tuning.jobs.checkpoints.with_streaming_response.list( | CODE |
| CRITICAL | tests/lib/test_fine_tuning_positional_arguments.py | 113 | await async_client.fine_tuning.jobs.checkpoints.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_creation_tools.py | 182 | async with sdk.beta.agents.sessions.with_streaming_response.create( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_creation_tools.py | 192 | with sdk.beta.agents.sessions.with_streaming_response.create( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_artifacts.py | 90 | return await sdk.beta.agents.sessions.artifacts.for_result(result()).download( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_artifacts.py | 98 | return sdk.beta.agents.sessions.artifacts.for_result(result()).download( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_artifacts.py | 143 | await sdk.beta.agents.sessions.artifacts.for_result(result()).content("/workspace/outputs/report.md", **options) | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_artifacts.py | 145 | else sdk.beta.agents.sessions.artifacts.for_result(result()).content("/workspace/outputs/report.md", **options) | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_artifacts.py | 163 | await sdk.beta.agents.sessions.artifacts.for_result(result()).content("/workspace/outputs/report.md") | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_artifacts.py | 165 | sdk.beta.agents.sessions.artifacts.for_result(result()).content("/workspace/outputs/report.md") | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 77 | return await sdk.beta.agents.environments.files.prepare(files, **options) | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 78 | return sdk.beta.agents.environments.files.prepare(files, **options) | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 163 | result = await sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 167 | result = sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 175 | await sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 179 | sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 188 | return await sdk.beta.agents.environments.files.upload( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 195 | return sdk.beta.agents.environments.files.upload( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 244 | await sdk.beta.agents.environments.files.prepare({"/workspace/a": source, "/workspace/b": source}) | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 291 | await sdk.beta.agents.environments.files.upload( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 312 | prepared = await sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 316 | prepared = sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 389 | await sdk.beta.agents.environments.files.upload( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 393 | sdk.beta.agents.environments.files.upload("env_test", file=("large", content), path="/workspace/large") | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 401 | await sdk.beta.agents.environments.files.upload( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 405 | sdk.beta.agents.environments.files.upload("", file=("source.txt", b"abc"), path="/workspace/source.txt") | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 474 | prepared = await sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 482 | return await sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 485 | return sdk.beta.agents.environments.files.prepare_directory(root, destination=destination, include=["**/*.txt"]) | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 509 | result = await sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 513 | result = sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 536 | result = await sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 540 | result = sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 600 | prepared = await sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 604 | prepared = sdk.beta.agents.environments.files.prepare_directory( | CODE |
| CRITICAL⚡ | tests/lib/streaming/agents/test_files.py | 632 | await sdk.beta.agents.environments.files.prepare({"/workspace/source.txt": source}) | CODE |
| 1545 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_x509_host_authority.py | 1 | CODE | |
| LOW | tests/test_agent_session_environment_reset.py | 1 | CODE | |
| LOW | tests/test_httpx_compat.py | 1 | CODE | |
| LOW | tests/test_data_residency_regressions.py | 1 | CODE | |
| LOW | tests/test_safety_cases.py | 1 | CODE | |
| LOW | tests/test_dependency_constraints.py | 1 | CODE | |
| LOW | tests/test_lazy_imports.py | 1 | CODE | |
| LOW | tests/test_x509_security_boundaries.py | 1 | CODE | |
| LOW | tests/conftest.py | 1 | CODE | |
| LOW | tests/test_module_client.py | 1 | CODE | |
| LOW | tests/test_transform.py | 1 | CODE | |
| LOW | tests/test_send_queue_reconnect.py | 1 | CODE | |
| LOW | tests/test_x509_workload_identity.py | 1 | CODE | |
| LOW | tests/test_large_payload_contract.py | 1 | CODE | |
| LOW | tests/test_httpx2.py | 1 | CODE | |
| LOW | tests/test_x509_workload_identity_regressions.py | 1 | CODE | |
| LOW | tests/test_tls_hostname.py | 1 | CODE | |
| LOW | tests/test_httpx2_workload.py | 1 | CODE | |
| LOW | tests/test_sse_framing.py | 1 | CODE | |
| LOW | tests/test_request_body_routing_order.py | 1 | CODE | |
| LOW | tests/test_debug_logging.py | 1 | CODE | |
| LOW | tests/test_streaming.py | 1 | CODE | |
| LOW | tests/test_mtls_http_client.py | 1 | CODE | |
| LOW | tests/test_log_levels.py | 1 | CODE | |
| LOW | tests/test_x509_workload_identity_transport.py | 1 | CODE | |
| LOW | tests/test_external_storage.py | 1 | CODE | |
| LOW | tests/test_external_storage.py | 11 | CODE | |
| LOW | tests/test_retry_after_overflow.py | 1 | CODE | |
| LOW | tests/test_upload_examples.py | 1 | CODE | |
| LOW | tests/test_agent_session_update.py | 1 | CODE | |
| LOW | tests/test_httpx2_respx.py | 1 | CODE | |
| LOW | tests/utils.py | 1 | CODE | |
| LOW | tests/test_send_queue.py | 1 | CODE | |
| LOW | tests/test_environment_credentials.py | 1 | CODE | |
| LOW | tests/test_x509_workload_identity_hardening.py | 1 | CODE | |
| LOW | tests/test_required_args.py | 1 | CODE | |
| LOW | tests/test_httpx2_base.py | 1 | CODE | |
| LOW | tests/test_platform.py | 1 | CODE | |
| LOW | tests/test_breaking_change_reexports.py | 1 | CODE | |
| LOW | tests/test_uv_workflows.py | 1 | CODE | |
| LOW | tests/test_client.py | 1 | CODE | |
| LOW | tests/test_client.py | 41 | CODE | |
| LOW | tests/test_data_residency_contract.py | 3 | CODE | |
| LOW | tests/test_extract_files.py | 1 | CODE | |
| LOW | tests/test_readme_metadata.py | 1 | CODE | |
| LOW | tests/test_multipart_encoding.py | 3 | CODE | |
| LOW | tests/test_httpx2_decompression.py | 1 | CODE | |
| LOW | tests/test_utils/test_typing.py | 1 | CODE | |
| LOW | tests/test_utils/test_json.py | 1 | CODE | |
| LOW | tests/test_utils/test_path.py | 1 | CODE | |
| LOW | tests/lib/test_file_processing.py | 1 | CODE | |
| LOW | tests/lib/test_websocket_urls.py | 1 | CODE | |
| LOW | tests/lib/test_realtime_websocket_recovery.py | 1 | CODE | |
| LOW | tests/lib/snapshots.py | 1 | CODE | |
| LOW | tests/lib/test_bedrock_auth_conformance.py | 1 | CODE | |
| LOW | tests/lib/test_vector_store_polling.py | 1 | CODE | |
| LOW | tests/lib/test_pydantic.py | 1 | CODE | |
| LOW | tests/lib/test_audio.py | 1 | CODE | |
| LOW | tests/lib/test_bedrock_runtime.py | 1 | CODE | |
| LOW | tests/lib/test_realtime_calls.py | 1 | CODE | |
| 3922 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | helpers.md | 499 | def current_run_step_snapshot() -> RunStep | None | CODE |
| LOW | tests/test_agent_session_environment_reset.py | 20 | async def test_session_environment_reset_stream( | CODE |
| LOW | tests/test_agent_session_environment_reset.py | 79 | async def test_session_environment_lifecycle_stream(sync: bool, strict: bool) -> None: | CODE |
| LOW | tests/test_httpx_compat.py | 20 | def test_external_legacy_httpx_client_is_supported() -> None: | CODE |
| LOW | tests/test_httpx_compat.py | 38 | async def test_external_legacy_async_httpx_client_is_supported() -> None: | CODE |
| LOW | tests/test_httpx_compat.py | 56 | async def test_external_legacy_aiohttp_client_is_supported() -> None: | CODE |
| LOW | tests/test_data_residency_regressions.py | 33 | def test_provider_conflicts_and_explicit_switch(client_type: type[OpenAI] | type[AsyncOpenAI]) -> None: | CODE |
| LOW | tests/test_data_residency_regressions.py | 51 | def test_legacy_azure_rejects_residency(client_type: type[AzureOpenAI] | type[AsyncAzureOpenAI]) -> None: | CODE |
| LOW | tests/test_data_residency_regressions.py | 59 | def test_legacy_bedrock_rejects_residency(client_type: type[BedrockOpenAI] | type[AsyncBedrockOpenAI]) -> None: | CODE |
| LOW⚡ | tests/test_data_residency_regressions.py | 74 | def test_sync_request_only_changes_destination() -> None: | CODE |
| LOW⚡ | tests/test_data_residency_regressions.py | 82 | async def test_async_request_only_changes_destination() -> None: | CODE |
| LOW⚡ | tests/test_data_residency_regressions.py | 92 | def test_residency_replaces_inherited_websocket_routing( | CODE |
| LOW | tests/test_safety_cases.py | 50 | def test_sync_safety_case_contract(notice_type: str, reason: str | None) -> None: | CODE |
| LOW | tests/test_safety_cases.py | 74 | async def test_async_safety_case_contract(notice_type: str, reason: str | None) -> None: | CODE |
| LOW | tests/test_safety_cases.py | 95 | def test_safety_case_future_notice_is_preserved_by_default() -> None: | CODE |
| LOW | tests/test_safety_cases.py | 111 | def test_sync_safety_case_never_uses_admin_key_as_fallback(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/test_safety_cases.py | 128 | async def test_async_safety_case_never_uses_admin_key_as_fallback(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/test_dependency_constraints.py | 16 | def test_optional_network_dependency_security_floors(name: str, extra: str, affected: str, patched: str) -> None: | CODE |
| LOW | tests/test_lazy_imports.py | 56 | def test_import_does_not_load_assistants(statement: str) -> None: | CODE |
| LOW | tests/test_lazy_imports.py | 67 | def test_resource_packages_load_only_accessed_exports() -> None: | STRING |
| LOW | tests/test_lazy_imports.py | 91 | def test_lazy_exports_preserve_public_import_contracts() -> None: | STRING |
| LOW | tests/test_lazy_imports.py | 144 | def test_first_requests_and_streams_do_not_load_assistants(asynchronous: bool) -> None: | STRING |
| LOW | tests/test_lazy_imports.py | 214 | def test_concurrent_first_access_preserves_class_identity(asynchronous: bool) -> None: | STRING |
| LOW | tests/test_agents_environment_token_page.py | 45 | def test_sync_files_token_pagination() -> None: | CODE |
| LOW | tests/test_agents_environment_token_page.py | 65 | async def test_async_files_token_pagination() -> None: | CODE |
| LOW | tests/test_x509_security_boundaries.py | 222 | def test_api_key_clients_keep_supported_plaintext_local_origins(client_type: type[OpenAI] | type[AsyncOpenAI]) -> None: | CODE |
| LOW | tests/conftest.py | 26 | def pytest_collection_modifyitems(items: list[pytest.Function]) -> None: | CODE |
| LOW | tests/test_module_client.py | 72 | def test_default_headers_option() -> None: | CODE |
| LOW | tests/test_module_client.py | 81 | def test_default_query_option() -> None: | CODE |
| LOW | tests/test_module_client.py | 122 | def test_only_api_key_results_in_openai_api() -> None: | CODE |
| LOW | tests/test_module_client.py | 130 | def test_azure_api_key_env_without_api_version() -> None: | CODE |
| LOW | tests/test_module_client.py | 142 | def test_azure_api_key_and_version_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 155 | def test_azure_api_key_version_and_endpoint_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 167 | def test_azure_azure_ad_token_version_and_endpoint_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 179 | def test_azure_azure_ad_token_provider_version_and_endpoint_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 194 | def test_azure_module_explicit_auth_precedence(forced: bool, mode: str) -> None: | CODE |
| LOW | tests/test_module_client.py | 231 | def test_azure_module_rejects_conflicting_explicit_auth(forced: bool) -> None: | CODE |
| LOW | tests/test_module_client.py | 242 | def test_azure_module_import_does_not_make_ambient_token_explicit() -> None: | CODE |
| LOW | tests/test_module_client.py | 268 | def test_azure_module_preserves_provider_ambiguity() -> None: | CODE |
| LOW | tests/test_module_client.py | 277 | def test_bedrock_token_and_region_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 288 | def test_bedrock_api_type_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 300 | def test_bedrock_api_type_uses_bedrock_credentials() -> None: | CODE |
| LOW | tests/test_module_client.py | 313 | def test_bedrock_api_type_uses_explicit_module_api_key() -> None: | CODE |
| LOW | tests/test_module_client.py | 326 | def test_bedrock_module_api_key_overrides_cached_env_token_after_load() -> None: | CODE |
| LOW | tests/test_module_client.py | 341 | def test_bedrock_module_api_key_switches_cached_aws_client_to_bearer() -> None: | CODE |
| LOW | tests/test_module_client.py | 365 | def test_bedrock_api_type_uses_token_provider_without_mutating_module_api_key() -> None: | CODE |
| LOW | tests/test_module_client.py | 377 | def test_bedrock_module_api_key_overrides_cached_token_provider() -> None: | CODE |
| LOW | tests/test_transform.py | 141 | async def test_includes_unknown_keys(use_async: bool) -> None: | CODE |
| LOW | tests/test_transform.py | 159 | async def test_ignores_invalid_input(use_async: bool) -> None: | CODE |
| LOW | tests/test_transform.py | 251 | async def test_datetime_custom_format(use_async: bool) -> None: | CODE |
| LOW⚡ | tests/test_transform.py | 277 | async def test_pydantic_model_to_dictionary(use_async: bool) -> None: | CODE |
| LOW⚡ | tests/test_transform.py | 284 | async def test_pydantic_empty_model(use_async: bool) -> None: | CODE |
| LOW⚡ | tests/test_transform.py | 290 | async def test_pydantic_unknown_field(use_async: bool) -> None: | CODE |
| LOW⚡ | tests/test_transform.py | 298 | async def test_pydantic_mismatched_types(use_async: bool) -> None: | CODE |
| LOW | tests/test_transform.py | 310 | async def test_pydantic_mismatched_object_type(use_async: bool) -> None: | CODE |
| LOW | tests/test_transform.py | 326 | async def test_pydantic_nested_objects(use_async: bool) -> None: | CODE |
| LOW | tests/test_transform.py | 340 | async def test_pydantic_default_field(use_async: bool) -> None: | CODE |
| LOW | tests/test_transform.py | 369 | async def test_pydantic_model_api_exclude(use_async: bool) -> None: | CODE |
| LOW | tests/test_transform.py | 389 | async def test_iterable_of_dictionaries(use_async: bool) -> None: | CODE |
| LOW | tests/test_transform.py | 417 | async def test_bare_dict_annotation(use_async: bool) -> None: | CODE |
| 2639 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/respx2/__init__.py | 29 | __all__ = [ | CODE |
| LOW | tests/respx2/mocks.py | 18 | __all__ = ["Mocker", "HTTPCoreMocker"] | CODE |
| LOW⚡ | src/openai/_httpx2.py | 127 | def _set_httpx2_defaults(kwargs: dict[str, Any]) -> None: | CODE |
| LOW | src/openai/__init__.py | 46 | __all__ = [ | CODE |
| LOW | src/openai/_client.py | 112 | __all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "OpenAI", "AsyncOpenAI", "Client", "AsyncClient"] | CODE |
| LOW | src/openai/_models.py | 96 | __all__ = ["BaseModel", "GenericModel"] | CODE |
| LOW | src/openai/_models.py | 847 | def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None: | CODE |
| LOW | src/openai/pagination.py | 6 | __all__ = [ | CODE |
| LOW | src/openai/_exceptions.py | 15 | __all__ = [ | CODE |
| LOW | src/openai/types/other_file_chunking_strategy_object.py | 7 | __all__ = ["OtherFileChunkingStrategyObject"] | CODE |
| LOW | src/openai/types/upload_complete_params.py | 9 | __all__ = ["UploadCompleteParams"] | CODE |
| LOW | src/openai/types/skill.py | 7 | __all__ = ["Skill"] | CODE |
| LOW | src/openai/types/video_create_error.py | 8 | __all__ = ["VideoCreateError", "Misalignment", "MisalignmentSteer"] | CODE |
| LOW | src/openai/types/file_purpose.py | 5 | __all__ = ["FilePurpose"] | CODE |
| LOW | src/openai/types/eval_retrieve_response.py | 19 | __all__ = [ | CODE |
| LOW | src/openai/types/image_model.py | 5 | __all__ = ["ImageModel"] | CODE |
| LOW | src/openai/types/vector_store_search_params.py | 12 | __all__ = ["VectorStoreSearchParams", "Filters", "RankingOptions"] | CODE |
| LOW | src/openai/types/batch_usage.py | 5 | __all__ = ["BatchUsage", "InputTokensDetails", "OutputTokensDetails"] | CODE |
| LOW | src/openai/types/model_deleted.py | 5 | __all__ = ["ModelDeleted"] | CODE |
| LOW | src/openai/types/container_create_params.py | 14 | __all__ = ["ContainerCreateParams", "ExpiresAfter", "NetworkPolicy", "Skill"] | CODE |
| LOW | src/openai/types/moderation_text_input_param.py | 7 | __all__ = ["ModerationTextInputParam"] | CODE |
| LOW | src/openai/types/vector_store_create_params.py | 12 | __all__ = ["VectorStoreCreateParams", "ExpiresAfter"] | CODE |
| LOW | src/openai/types/batch_create_params.py | 10 | __all__ = ["BatchCreateParams", "OutputExpiresAfter"] | CODE |
| LOW | src/openai/types/video_size.py | 5 | __all__ = ["VideoSize"] | CODE |
| LOW | src/openai/types/eval_list_params.py | 7 | __all__ = ["EvalListParams"] | CODE |
| LOW | src/openai/types/skill_update_params.py | 7 | __all__ = ["SkillUpdateParams"] | CODE |
| LOW | src/openai/types/moderation_create_params.py | 12 | __all__ = ["ModerationCreateParams"] | CODE |
| LOW | src/openai/types/eval_update_params.py | 10 | __all__ = ["EvalUpdateParams"] | CODE |
| LOW | src/openai/types/video_delete_response.py | 7 | __all__ = ["VideoDeleteResponse"] | CODE |
| LOW | src/openai/types/embedding_model.py | 5 | __all__ = ["EmbeddingModel"] | CODE |
| LOW | src/openai/types/upload.py | 9 | __all__ = ["Upload"] | CODE |
| LOW | src/openai/types/completion.py | 10 | __all__ = ["Completion"] | CODE |
| LOW | src/openai/types/video_model.py | 6 | __all__ = ["VideoModel"] | CODE |
| LOW | src/openai/types/file_chunking_strategy.py | 10 | __all__ = ["FileChunkingStrategy"] | CODE |
| LOW | src/openai/types/file_chunking_strategy_param.py | 11 | __all__ = ["FileChunkingStrategyParam"] | CODE |
| LOW | src/openai/types/embedding.py | 8 | __all__ = ["Embedding"] | CODE |
| LOW | src/openai/types/vector_store.py | 9 | __all__ = ["VectorStore", "FileCounts", "ExpiresAfter"] | CODE |
| LOW | src/openai/types/decision_input_part_union_param.py | 11 | __all__ = ["DecisionInputPartUnionParam"] | CODE |
| LOW | src/openai/types/video_get_character_response.py | 7 | __all__ = ["VideoGetCharacterResponse"] | CODE |
| LOW | src/openai/types/file_create_params.py | 10 | __all__ = ["FileCreateParams", "ExpiresAfter"] | CODE |
| LOW | src/openai/types/video_create_character_params.py | 9 | __all__ = ["VideoCreateCharacterParams"] | CODE |
| LOW | src/openai/types/decision_create_params.py | 10 | __all__ = [ | CODE |
| LOW | src/openai/types/video_download_content_params.py | 7 | __all__ = ["VideoDownloadContentParams"] | CODE |
| LOW | src/openai/types/skill_create_params.py | 10 | __all__ = ["SkillCreateParams"] | CODE |
| LOW | src/openai/types/moderation.py | 10 | __all__ = ["Moderation", "Categories", "CategoryAppliedInputTypes", "CategoryScores"] | CODE |
| LOW | src/openai/types/image_gen_completed_event.py | 8 | __all__ = ["ImageGenCompletedEvent", "Usage", "UsageInputTokensDetails"] | CODE |
| LOW | src/openai/types/image_edit_partial_image_event.py | 8 | __all__ = ["ImageEditPartialImageEvent"] | CODE |
| LOW | src/openai/types/eval_create_params.py | 18 | __all__ = [ | CODE |
| LOW | src/openai/types/batch.py | 12 | __all__ = ["Batch", "Errors"] | CODE |
| LOW | src/openai/types/video_edit_params.py | 10 | __all__ = ["VideoEditParams", "Video", "VideoVideoReferenceInputParam"] | CODE |
| LOW | src/openai/types/image_input_reference_param.py | 7 | __all__ = ["ImageInputReferenceParam"] | CODE |
| LOW | src/openai/types/skill_list_params.py | 7 | __all__ = ["SkillListParams"] | CODE |
| LOW | src/openai/types/image_edit_stream_event.py | 10 | __all__ = ["ImageEditStreamEvent"] | CODE |
| LOW | src/openai/types/completion_create_params.py | 11 | __all__ = ["CompletionCreateParamsBase", "CompletionCreateParamsNonStreaming", "CompletionCreateParamsStreaming"] | CODE |
| LOW | src/openai/types/auto_file_chunking_strategy_param.py | 7 | __all__ = ["AutoFileChunkingStrategyParam"] | CODE |
| LOW | src/openai/types/video_create_params.py | 14 | __all__ = ["VideoCreateParams", "InputReference"] | CODE |
| LOW | src/openai/types/vector_store_update_params.py | 10 | __all__ = ["VectorStoreUpdateParams", "ExpiresAfter"] | CODE |
| LOW | src/openai/types/image_gen_partial_image_event.py | 8 | __all__ = ["ImageGenPartialImageEvent"] | CODE |
| LOW | src/openai/types/moderation_image_url_input_param.py | 7 | __all__ = ["ModerationImageURLInputParam", "ImageURL"] | CODE |
| LOW | src/openai/types/batch_list_params.py | 7 | __all__ = ["BatchListParams"] | CODE |
| 1728 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_streaming.py | 56 | b'"choices":[{"index":0,"delta":{"content":"hello"},"finish_reason":null}]}\n\n' | CODE |
| HIGH | tests/test_streaming.py | 398 | b'"finish_reason":null}]}\n\n' | CODE |
| HIGH⚡ | tests/test_utils/test_json.py | 121 | assert json_bytes == b'{"model":{"name":"Eve","email":null,"phone":null}}' | CODE |
| HIGH⚡ | tests/test_utils/test_json.py | 126 | assert json_bytes == b'{"model":{"name":"Frank","email":"frank@example.com","phone":null}}' | CODE |
| HIGH | tests/lib/chat/test_completions.py | 44 | '{"id": "chatcmpl-ABfvaueLEMLNYbT8YzpJxsmiQ6HSY", "object": "chat.completion", "created": 1727346142, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 117 | '{"id": "chatcmpl-ABfvbtVnTu5DeC4EFnRYj8mtfOM99", "object": "chat.completion", "created": 1727346143, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 191 | '{"id": "chatcmpl-ABfvcC8grKYsRkSoMp9CCAhbXAd0b", "object": "chat.completion", "created": 1727346144, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 269 | '{"id": "chatcmpl-ABfvjIatz0zrZu50gRbMtlp0asZpz", "object": "chat.completion", "created": 1727346151, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 319 | '{"id": "chatcmpl-ABfvp8qzboW92q8ONDF4DPHlI7ckC", "object": "chat.completion", "created": 1727346157, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 400 | '{"id": "chatcmpl-ABfvqhz4uUUWsw8Ohw2Mp9B4sKKV8", "object": "chat.completion", "created": 1727346158, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 470 | '{"id": "chatcmpl-ABfvtNiaTNUF6OymZUnEFc9lPq9p1", "object": "chat.completion", "created": 1727346161, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 556 | '{"id": "chatcmpl-ABfvvX7eB1KsfeZj8VcF3z7G7SbaA", "object": "chat.completion", "created": 1727346163, "m | CODE |
| HIGH | tests/lib/chat/test_completions.py | 583 | '{"id": "chatcmpl-ABfvwoKVWPQj2UPlAcAKM7s40GsRx", "object": "chat.completion", "created": 1727346164, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 634 | '{"id": "chatcmpl-ABfvx6Z4dchiW2nya1N8KMsHFrQRE", "object": "chat.completion", "created": 1727346165, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 710 | '{"id": "chatcmpl-ABfvyvfNWKcl7Ohqos4UFrmMs1v4C", "object": "chat.completion", "created": 1727346166, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 793 | '{"id": "chatcmpl-ABfvzdvCI6RaIkiEFNjqGXCSYnlzf", "object": "chat.completion", "created": 1727346167, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 871 | '{"id": "chatcmpl-ABrDYCa8W1w66eUxKDO8TQF1m6trT", "object": "chat.completion", "created": 1727389540, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 951 | '{"id": "chatcmpl-ABrDQWOiw0PK5JOsxl1D9ooeQgznq", "object": "chat.completion", "created": 1727389532, "model | CODE |
| HIGH | tests/lib/responses/test_responses.py | 37 | '{"id": "resp_689a0b2545288193953c892439b42e2800b2e36c65a1fd4b", "object": "response", "created_at": 1754925 | CODE |
| HIGH | tests/lib/live/helpers.py | 109 | result = grouper.push(value) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 25 | grouper.push(text("One", speaker="user")) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 26 | grouper.push(text(" two", speaker="user", start=200, end=400, item_id="two")) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 29 | grouper.push(text(" three", speaker="user", start=400, end=600, item_id="three")) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 54 | grouper.push(text("One", speaker="user")) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 55 | grouper.push(text(" two", speaker="user", start=200, end=400, item_id="two")) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 89 | grouper.push(text("after")) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 94 | grouper.push(text()) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 261 | grouper.push(text()) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 327 | await grouper.push(text()) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 339 | sync.push(text()) | CODE |
| HIGH⚡ | tests/lib/live/test_transcript_grouper_lifecycle.py | 346 | await asynchronous.push(text()) | CODE |
| HIGH | tests/lib/live/test_transcript_grouper_lifecycle.py | 113 | await grouper.push(text()) | CODE |
| HIGH | tests/lib/live/test_transcript_grouper_lifecycle.py | 137 | await grouper.push(text("One", speaker="user")) | CODE |
| HIGH | tests/lib/live/test_transcript_grouper_lifecycle.py | 138 | sender = asyncio.create_task(grouper.push(text(" two", start=200, end=400, item_id="two", speaker="user"))) | CODE |
| HIGH | tests/lib/live/test_transcript_grouper_lifecycle.py | 160 | await grouper.push(text("One", speaker="user")) | CODE |
| HIGH | tests/lib/live/test_transcript_grouper_lifecycle.py | 161 | sender = asyncio.create_task(grouper.push(text(" two", start=200, end=400, item_id="two", speaker="user"))) | CODE |
| HIGH | tests/lib/live/test_transcript_grouper_lifecycle.py | 178 | await grouper.push(text("One", speaker="user")) | CODE |
| HIGH | tests/lib/live/test_transcript_grouper_lifecycle.py | 191 | caller = asyncio.create_task(grouper.push(text(" two", start=200, end=400, item_id="two", speaker="user"))) | CODE |
| HIGH | tests/lib/live/test_transcript_grouper_lifecycle.py | 220 | grouper.push(text("One", speaker="user")) | CODE |
| HIGH | tests/lib/live/test_transcript_grouper_lifecycle.py | 282 | await grouper.push(text()) | CODE |
| HIGH | examples/live/transcript_grouper.py | 51 | grouper.push(event) | CODE |
| HIGH | examples/live/audio_transcript.py | 59 | await transcript.push(event) | CODE |
| HIGH | scripts/castiron/custom_code_report.py | 6 | Hash v1: SHA256(domain || u64(entry count) || entries), where each entry is | STRING |
| HIGH | scripts/castiron/custom_code_report.py | 7 | u64(path length) || path bytes || six ASCII Git mode bytes || u64(blob length) | STRING |
| HIGH | scripts/castiron/test_custom_code_budget.py | 138 | '{"schema_version":1,"max_custom_patch_lines":null}', | CODE |
| HIGH | src/openai/types/beta/beta_web_search_tool.py | 27 | If omitted or null, defaults to the | STRING |
| HIGH | src/openai/types/beta/beta_web_search_tool.py | 87 | If omitted or null, defaults to the United States. To avoid this fallback, pass | STRING |
| HIGH | …penai/types/beta/beta_web_search_preview_tool_param.py | 14 | If omitted or null, defaults to the United States. To avoid this fallback, pass `{"type": "approximate"}` without lo | STRING |
| HIGH | …penai/types/beta/beta_web_search_preview_tool_param.py | 63 | If omitted or null, defaults to the United States. To avoid this fallback, pass | STRING |
| HIGH | src/openai/types/beta/beta_web_search_tool_param.py | 29 | If omitted or null, defaults to the | STRING |
| HIGH | src/openai/types/beta/beta_web_search_tool_param.py | 89 | If omitted or null, defaults to the United States. To avoid this fallback, pass | STRING |
| HIGH | src/openai/types/beta/beta_web_search_preview_tool.py | 14 | If omitted or null, defaults to the United States. To avoid this fallback, pass `{"type": "approximate"}` without lo | STRING |
| HIGH | src/openai/types/beta/beta_web_search_preview_tool.py | 63 | If omitted or null, defaults to the United States. To avoid this fallback, pass | STRING |
| HIGH | …ta/chatkit/chat_session_chatkit_configuration_param.py | 42 | When omitted, history is enabled by default with no limit on recent_threads (null). | STRING |
| HIGH | …ta/chatkit/chat_session_chatkit_configuration_param.py | 75 | (null). | STRING |
| HIGH | src/openai/types/responses/web_search_preview_tool.py | 14 | If omitted or null, defaults to the United States. To avoid this fallback, pass `{"type": "approximate"}` without lo | STRING |
| HIGH | src/openai/types/responses/web_search_preview_tool.py | 63 | If omitted or null, defaults to the United States. To avoid this fallback, pass | STRING |
| HIGH | src/openai/types/responses/web_search_tool_param.py | 29 | If omitted or null, defaults to the | STRING |
| HIGH | src/openai/types/responses/web_search_tool_param.py | 89 | If omitted or null, defaults to the United States. To avoid this fallback, pass | STRING |
| HIGH | …penai/types/responses/web_search_preview_tool_param.py | 14 | If omitted or null, defaults to the United States. To avoid this fallback, pass `{"type": "approximate"}` without lo | STRING |
| 12 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_uv_workflows.py | 106 | CODE | |
| LOW | tests/test_uv_workflows.py | 1380 | CODE | |
| LOW | tests/lib/test_bedrock.py | 955 | CODE | |
| LOW | tests/respx2/models.py | 45 | CODE | |
| LOW | tests/respx2/models.py | 271 | CODE | |
| LOW | tests/respx2/models.py | 428 | CODE | |
| LOW | tests/respx2/utils.py | 113 | CODE | |
| LOW | tests/respx2/mocks.py | 184 | CODE | |
| LOW | tests/respx2/mocks.py | 193 | CODE | |
| LOW | scripts/castiron/test_custom_code_publication.py | 312 | CODE | |
| LOW | src/openai/_base_client.py | 2147 | CODE | |
| LOW | src/openai/_client.py | 164 | CODE | |
| LOW | src/openai/_client.py | 709 | CODE | |
| LOW | src/openai/_client.py | 930 | CODE | |
| LOW | src/openai/_client.py | 1488 | CODE | |
| LOW | src/openai/_models.py | 303 | CODE | |
| LOW | src/openai/_models.py | 374 | CODE | |
| LOW | src/openai/_vendor/httpx_aiohttp/transport.py | 77 | CODE | |
| LOW | src/openai/providers/bedrock.py | 383 | CODE | |
| LOW | src/openai/resources/files.py | 194 | CODE | |
| LOW | src/openai/resources/files.py | 535 | CODE | |
| LOW | src/openai/resources/completions.py | 50 | CODE | |
| LOW | src/openai/resources/completions.py | 209 | CODE | |
| LOW | src/openai/resources/completions.py | 368 | CODE | |
| LOW | src/openai/resources/completions.py | 527 | CODE | |
| LOW | src/openai/resources/completions.py | 620 | CODE | |
| LOW | src/openai/resources/completions.py | 779 | CODE | |
| LOW | src/openai/resources/completions.py | 938 | CODE | |
| LOW | src/openai/resources/completions.py | 1097 | CODE | |
| LOW | src/openai/resources/images.py | 52 | CODE | |
| LOW | src/openai/resources/images.py | 133 | CODE | |
| LOW | src/openai/resources/images.py | 259 | CODE | |
| LOW | src/openai/resources/images.py | 385 | CODE | |
| LOW | src/openai/resources/images.py | 511 | CODE | |
| LOW | src/openai/resources/images.py | 582 | CODE | |
| LOW | src/openai/resources/images.py | 699 | CODE | |
| LOW | src/openai/resources/images.py | 816 | CODE | |
| LOW | src/openai/resources/images.py | 933 | CODE | |
| LOW | src/openai/resources/images.py | 1021 | CODE | |
| LOW | src/openai/resources/images.py | 1102 | CODE | |
| LOW | src/openai/resources/images.py | 1228 | CODE | |
| LOW | src/openai/resources/images.py | 1354 | CODE | |
| LOW | src/openai/resources/images.py | 1480 | CODE | |
| LOW | src/openai/resources/images.py | 1551 | CODE | |
| LOW | src/openai/resources/images.py | 1668 | CODE | |
| LOW | src/openai/resources/images.py | 1785 | CODE | |
| LOW | src/openai/resources/images.py | 1902 | CODE | |
| LOW | src/openai/resources/videos.py | 71 | CODE | |
| LOW | src/openai/resources/videos.py | 140 | CODE | |
| LOW | src/openai/resources/videos.py | 662 | CODE | |
| LOW | src/openai/resources/videos.py | 731 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 58 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 227 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 408 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 537 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 706 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 887 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 112 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 522 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 932 | CODE | |
| 266 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/utils.py | 123 | except ValueError: | CODE |
| HIGH | tests/lib/responses/test_websocket_contract.py | 75 | except ConnectionClosedOK: | CODE |
| HIGH | tests/respx2/fixtures.py | 3 | except ImportError: # pragma: nocover | CODE |
| HIGH | tests/respx2/mocks.py | 86 | except AttributeError: | CODE |
| HIGH | examples/realtime/push_to_talk_app.py | 258 | except KeyboardInterrupt: | CODE |
| HIGH | examples/realtime/audio_util.py | 138 | except KeyboardInterrupt: | CODE |
| HIGH | src/openai/_base_client.py | 960 | except Exception: | CODE |
| HIGH | src/openai/_base_client.py | 1584 | except Exception: | CODE |
| HIGH | src/openai/__init__.py | 149 | except (TypeError, AttributeError): | CODE |
| HIGH | src/openai/_streaming.py | 424 | except (TypeError, ValueError): | CODE |
| HIGH | src/openai/_models.py | 622 | except Exception: | CODE |
| HIGH | src/openai/_event_handler.py | 42 | except ValueError: | CODE |
| HIGH | src/openai/auth/_x509.py | 357 | except ValueError: | CODE |
| HIGH | src/openai/resources/beta/responses/responses.py | 4440 | except Exception: | CODE |
| HIGH | src/openai/resources/beta/responses/responses.py | 4933 | except Exception: | CODE |
| HIGH | src/openai/resources/responses/responses.py | 4293 | except Exception: | CODE |
| HIGH | src/openai/resources/responses/responses.py | 4798 | except Exception: | CODE |
| HIGH | src/openai/resources/realtime/realtime.py | 502 | except Exception: | CODE |
| HIGH | src/openai/resources/realtime/realtime.py | 1027 | except Exception: | CODE |
| HIGH | src/openai/resources/live/sideband.py | 315 | except Exception: | CODE |
| HIGH | src/openai/resources/live/sideband.py | 820 | except Exception: | CODE |
| HIGH | src/openai/resources/live/forks.py | 310 | except Exception: | CODE |
| HIGH | src/openai/resources/live/forks.py | 803 | except Exception: | CODE |
| HIGH | src/openai/resources/live/live.py | 531 | except Exception: | CODE |
| HIGH | src/openai/resources/live/live.py | 1021 | except Exception: | CODE |
| HIGH | src/openai/lib/responses_websocket/_session.py | 614 | except asyncio.CancelledError: | CODE |
| HIGH | src/openai/lib/responses_websocket/_session.py | 457 | except Exception: | CODE |
| HIGH | src/openai/lib/responses_websocket/_session.py | 593 | except Exception: | CODE |
| HIGH | src/openai/lib/streaming/agents/_dispatch.py | 100 | except Exception: | CODE |
| HIGH | src/openai/lib/streaming/agents/_dispatch.py | 152 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_module_client.py | 194 | CODE | |
| LOW | tests/test_httpx2.py | 670 | CODE | |
| LOW | tests/test_tls_hostname.py | 197 | CODE | |
| LOW | tests/test_debug_logging.py | 31 | CODE | |
| LOW | tests/test_debug_logging.py | 155 | CODE | |
| LOW | tests/test_debug_logging.py | 231 | CODE | |
| LOW | tests/test_debug_logging.py | 277 | CODE | |
| LOW | tests/test_streaming.py | 44 | CODE | |
| LOW | tests/test_retry_after_overflow.py | 29 | CODE | |
| LOW | tests/utils.py | 56 | CODE | |
| LOW | tests/test_uv_workflows.py | 406 | CODE | |
| LOW | tests/test_uv_workflows.py | 507 | CODE | |
| LOW | tests/test_uv_workflows.py | 593 | CODE | |
| LOW | tests/test_uv_workflows.py | 702 | CODE | |
| LOW | tests/test_uv_workflows.py | 782 | CODE | |
| LOW | tests/test_uv_workflows.py | 894 | CODE | |
| LOW | tests/test_uv_workflows.py | 1380 | CODE | |
| LOW | tests/test_uv_workflows.py | 2403 | CODE | |
| LOW | tests/test_uv_workflows.py | 2589 | CODE | |
| LOW | tests/test_uv_workflows.py | 2678 | CODE | |
| LOW | tests/test_uv_workflows.py | 2755 | CODE | |
| LOW | tests/test_uv_workflows.py | 2871 | CODE | |
| LOW | tests/test_uv_workflows.py | 3041 | CODE | |
| LOW | tests/test_uv_workflows.py | 3164 | CODE | |
| LOW | tests/test_uv_workflows.py | 3242 | CODE | |
| LOW | tests/test_uv_workflows.py | 3554 | CODE | |
| LOW | tests/test_uv_workflows.py | 3680 | CODE | |
| LOW | tests/test_uv_workflows.py | 3793 | CODE | |
| LOW | tests/test_uv_workflows.py | 3944 | CODE | |
| LOW | tests/test_uv_workflows.py | 4090 | CODE | |
| LOW | tests/test_uv_workflows.py | 4267 | CODE | |
| LOW | tests/test_uv_workflows.py | 4334 | CODE | |
| LOW | tests/test_uv_workflows.py | 4424 | CODE | |
| LOW | tests/test_uv_workflows.py | 4524 | CODE | |
| LOW | tests/test_uv_workflows.py | 4598 | CODE | |
| LOW | tests/test_uv_workflows.py | 4660 | CODE | |
| LOW | tests/test_uv_workflows.py | 4900 | CODE | |
| LOW | tests/test_uv_workflows.py | 5005 | CODE | |
| LOW | tests/test_uv_workflows.py | 5090 | CODE | |
| LOW | tests/test_uv_workflows.py | 5156 | CODE | |
| LOW | tests/test_uv_workflows.py | 5232 | CODE | |
| LOW | tests/test_uv_workflows.py | 5288 | CODE | |
| LOW | tests/test_uv_workflows.py | 5354 | CODE | |
| LOW | tests/test_uv_workflows.py | 5441 | CODE | |
| LOW | tests/test_uv_workflows.py | 5524 | CODE | |
| LOW | tests/test_uv_workflows.py | 6498 | CODE | |
| LOW | tests/test_uv_workflows.py | 6594 | CODE | |
| LOW | tests/test_client.py | 3546 | CODE | |
| LOW | tests/test_client.py | 3659 | CODE | |
| LOW | tests/lib/test_websocket_urls.py | 40 | CODE | |
| LOW | tests/lib/test_realtime_websocket_recovery.py | 30 | CODE | |
| LOW | tests/lib/test_realtime_websocket_recovery.py | 77 | CODE | |
| LOW | tests/lib/test_realtime_websocket_recovery.py | 129 | CODE | |
| LOW | tests/lib/test_bedrock_auth_conformance.py | 151 | CODE | |
| LOW | tests/lib/test_bedrock_auth_conformance.py | 542 | CODE | |
| LOW | tests/lib/test_audio.py | 19 | CODE | |
| LOW | tests/lib/test_audio.py | 54 | CODE | |
| LOW | tests/lib/test_realtime_calls.py | 21 | CODE | |
| LOW | tests/lib/bedrock_live.py | 114 | CODE | |
| LOW | tests/lib/test_azure_provider_diagnostics.py | 132 | CODE | |
| 125 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 620 | except Exception as e: | CODE |
| LOW | README.md | 656 | except Exception as e: | CODE |
| LOW | tests/test_uv_workflows.py | 1543 | except Exception: | CODE |
| LOW | tests/lib/responses/test_websocket_contract.py | 79 | except Exception as exc: | CODE |
| LOW | tests/lib/responses/test_websocket_session.py | 141 | except Exception as exc: | CODE |
| LOW | tests/respx2/patterns.py | 152 | except Exception: | CODE |
| LOW | tests/respx2/models.py | 342 | except Exception as error: | CODE |
| LOW | tests/respx2/router.py | 299 | except Exception as error: | CODE |
| LOW | examples/image_stream.py | 52 | except Exception as error: | CODE |
| MEDIUM | examples/image_stream.py | 53 | print(f"Error generating image: {error}") | CODE |
| LOW | scripts/utils/ruffen-docs.py | 42 | except Exception as e: | CODE |
| MEDIUM | src/openai/_base_client.py | 2221 | def get_platform() -> Platform: | CODE |
| MEDIUM | src/openai/_base_client.py | 2296 | def get_python_runtime() -> str: | CODE |
| MEDIUM | src/openai/_base_client.py | 2303 | def get_python_version() -> str: | CODE |
| MEDIUM | src/openai/_base_client.py | 2310 | def get_architecture() -> Arch: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2299 | except Exception: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2306 | except Exception: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2313 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 500 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 960 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 1584 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 2225 | except Exception: | CODE |
| LOW | src/openai/_response.py | 249 | except Exception as exc: | CODE |
| LOW | src/openai/_legacy_response.py | 316 | except Exception as exc: | CODE |
| LOW | src/openai/_models.py | 622 | except Exception: | CODE |
| LOW | src/openai/_models.py | 651 | except Exception: | CODE |
| LOW | src/openai/_models.py | 697 | except Exception: | CODE |
| LOW | src/openai/_models.py | 703 | except Exception: | CODE |
| LOW | src/openai/_utils/_proxy.py | 51 | except Exception: | CODE |
| LOW | src/openai/_utils/_utils.py | 410 | except Exception: | CODE |
| MEDIUM | src/openai/_utils/_utils.py | 407 | def get_async_library() -> str: | CODE |
| LOW | src/openai/_vendor/httpx_aiohttp/transport.py | 44 | except Exception as exc: | CODE |
| MEDIUM | src/openai/_vendor/httpx_aiohttp/transport.py | 41 | def map_aiohttp_exceptions() -> typing.Iterator[None]: | CODE |
| LOW | src/openai/auth/_workload.py | 97 | except Exception as e: | CODE |
| LOW | src/openai/auth/_workload.py | 157 | except Exception as e: | CODE |
| LOW | src/openai/auth/_workload.py | 201 | except Exception as e: | CODE |
| MEDIUM | src/openai/auth/_workload.py | 90 | def get_token() -> str: | CODE |
| MEDIUM | src/openai/auth/_workload.py | 128 | def get_token() -> str: | CODE |
| MEDIUM | src/openai/auth/_workload.py | 181 | def get_token() -> str: | CODE |
| LOW | src/openai/providers/bedrock.py | 158 | except Exception as exc: | CODE |
| LOW | src/openai/providers/bedrock.py | 177 | except Exception as exc: | CODE |
| MEDIUM | src/openai/providers/bedrock.py | 153 | def _resolve_token(self) -> str: | CODE |
| MEDIUM | src/openai/providers/bedrock.py | 170 | def _resolve_token_async(self) -> str: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4408 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4440 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4454 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4901 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4933 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4943 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4261 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4293 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4307 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4760 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4798 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4808 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 470 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 502 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 516 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 995 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 1027 | except Exception: | CODE |
| 51 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_send_queue_reconnect.py | 33 | api_key="fake-key", | CODE |
| LOW | tests/test_send_queue_reconnect.py | 76 | api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client() | CODE |
| LOW | tests/test_tls_hostname.py | 40 | return http.Response(200, json={"access_token": "fake-token", "expires_in": 3600}) | CODE |
| LOW | tests/test_tls_hostname.py | 84 | return http.Response(200, json={"access_token": "fake-token", "expires_in": 3600}) | CODE |
| LOW⚡ | tests/test_client.py | 3617 | AsyncOpenAI(api_key="fake-key", max_retries=1, http_client=httpx2.AsyncClient(transport=transport)) | CODE |
| LOW⚡ | tests/test_client.py | 3619 | else OpenAI(api_key="fake-key", max_retries=1, http_client=httpx2.Client(transport=transport)) | CODE |
| LOW | tests/test_client.py | 3568 | AsyncOpenAI(api_key="fake-key", http_client=httpx2.AsyncClient(transport=transport)) | CODE |
| LOW | tests/test_client.py | 3570 | else OpenAI(api_key="fake-key", http_client=httpx2.Client(transport=transport)) | CODE |
| LOW | tests/test_client.py | 3639 | client = AsyncOpenAI(api_key="fake-key") if is_async else OpenAI(api_key="fake-key") | CODE |
| LOW | tests/test_client.py | 3673 | AsyncOpenAI(api_key="fake-key", max_retries=max_retries, http_client=httpx2.AsyncClient(transport=transport)) | CODE |
| LOW | tests/test_client.py | 3675 | else OpenAI(api_key="fake-key", max_retries=max_retries, http_client=httpx2.Client(transport=transport)) | CODE |
| LOW⚡ | tests/test_utils/test_json.py | 98 | address = Address(street="123 Main St") | CODE |
| LOW⚡ | tests/test_utils/test_json.py | 102 | assert json_bytes == b'{"user":{"name":"Diana","address":{"street":"123 Main St"}}}' | CODE |
| LOW⚡ | tests/lib/test_embeddings.py | 142 | "user": "fake-user", | CODE |
| LOW | tests/lib/test_embeddings.py | 165 | "user": "fake-user", | CODE |
| LOW | tests/lib/test_embeddings.py | 197 | "user": "fake-user", | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 24 | EXTRA_HEADERS = {"api-key": "fake-key", "Cookie": "fake-cookie", "X-Custom": "fake-private-header"} | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 155 | api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client() | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 173 | api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client() | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 187 | assert headers["Authorization"] == "Bearer fake-key" | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 196 | api_key="fake-key", | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 211 | assert all(uri.host == "origin.test" and headers["api-key"] == "fake-key" for uri, headers in handshakes.attempts) | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 220 | api_key="fake-key", | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 233 | assert connect_mock.call_args.kwargs["additional_headers"]["Authorization"] == "Bearer fake-key" | CODE |
| LOW | tests/lib/test_azure_auth.py | 160 | return f"fake-token-{calls}" | CODE |
| LOW⚡ | tests/lib/test_azure_auth.py | 182 | expected_auth("azure_ad_token", "fake-token-1"), | CODE |
| LOW⚡ | tests/lib/test_azure_auth.py | 183 | expected_auth("azure_ad_token", "fake-token-2"), | CODE |
| LOW⚡ | tests/lib/test_azure_auth.py | 186 | assert auth(headers) == expected_auth("azure_ad_token", "fake-token-3") | CODE |
| LOW | tests/lib/test_azure_auth.py | 218 | return f"fake-key-{calls}" | CODE |
| LOW | tests/lib/test_azure_auth.py | 262 | assert websocket_headers == [expected_auth("api_key", f"fake-key-{i}") for i in (4, 5)] | CODE |
| LOW | tests/lib/test_azure_auth.py | 264 | expected_auth("api_key", f"fake-key-{i}") for i in (1, 2, 3) | CODE |
| LOW | tests/lib/test_azure_auth.py | 277 | assert auth(requests[-1].headers) == expected_auth("api_key", "fake-key-6") | CODE |
| LOW⚡ | tests/lib/test_azure_deployment_path.py | 47 | client = client_type(api_key="fake-key", api_version=_API_VERSION, azure_endpoint=_ENDPOINT) | CODE |
| LOW⚡ | tests/lib/test_azure_deployment_path.py | 60 | client = client_type(api_key="fake-key", api_version=_API_VERSION, azure_endpoint=_ENDPOINT) | CODE |
| LOW⚡ | tests/lib/test_azure_deployment_path.py | 72 | api_key="fake-key", api_version=_API_VERSION, azure_endpoint=_ENDPOINT, azure_deployment=deployment | CODE |
| LOW | tests/lib/test_azure_deployment_path.py | 91 | api_key="fake-key", | CODE |
| LOW | tests/lib/test_azure_deployment_path.py | 111 | api_key="fake-key", | CODE |
| LOW⚡ | tests/lib/test_azure_deployment_path.py | 128 | api_key="fake-key", | CODE |
| LOW⚡ | tests/lib/test_azure_deployment_path.py | 143 | api_key="fake-key", | CODE |
| LOW | tests/lib/test_azure_redirects.py | 101 | result = client.models.with_raw_response.list(extra_headers={"Authorization": "Bearer fake-token"}) | CODE |
| LOW⚡ | tests/lib/test_azure_redirects.py | 120 | result = await client.models.with_raw_response.list(extra_headers={"Authorization": "Bearer fake-token"}) | CODE |
| LOW | tests/lib/test_azure.py | 984 | json_data={"model": "placeholder"}, | CODE |
| LOW | tests/lib/responses/test_websocket_session.py | 833 | with OpenAI(api_key="fake-key", base_url=url, http_client=httpx2.Client(trust_env=False)) as client: | CODE |
| LOW | tests/lib/responses/test_websocket_session.py | 857 | api_key="fake-key", base_url=url, http_client=httpx2.AsyncClient(trust_env=False) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/lib/chat/test_completions_streaming.py | 73 | content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I | STRING |
| MEDIUM | tests/lib/chat/test_completions_streaming.py | 88 | content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I recommend | STRING |
| MEDIUM | tests/lib/chat/test_completions_streaming.py | 1099 | content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I | CODE |
| MEDIUM | tests/lib/chat/test_completions.py | 62 | content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I | STRING |
| MEDIUM | examples/streaming.py | 50 | # In Python 3.10+ you can also use the `await anext(response)` builtin instead | COMMENT |
| MEDIUM | …c/openai/types/evals/runs/output_item_list_response.py | 38 | # To access properties that are not valid identifiers you can use `getattr`, e.g. | COMMENT |
| MEDIUM | …enai/types/evals/runs/output_item_retrieve_response.py | 38 | # To access properties that are not valid identifiers you can use `getattr`, e.g. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyproject.toml | 195 | # it's fine to just use Pyright. | COMMENT |
| MEDIUM | tests/lib/test_websocket_redirects.py | 43 | # The socket-free harness needs only synthetic values for required URL arguments. | COMMENT |
| MEDIUM | tests/api_resources/_websocket_resources.py | 3 | # Consumed by the SDK-owned tests/lib/test_websocket_redirects.py harness. | COMMENT |
| LOW | src/openai/_response.py | 265 | # If the API responds with content that isn't JSON then we just return | COMMENT |
| LOW | src/openai/_legacy_response.py | 332 | # If the API responds with content that isn't JSON then we just return | COMMENT |
| LOW | src/openai/_models.py | 491 | # If the type cannot be reconstructed, just return the validated list | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/openai/types/content_provenance_check.py | 29 | file. The content could still have been generated by OpenAI if the metadata was | STRING |
| HIGH | src/openai/types/content_provenance_check.py | 57 | could still have been generated by OpenAI if the metadata was stripped or has | STRING |
| HIGH | src/openai/resources/content_provenance_checks.py | 59 | uploaded file. The content could still have been generated by OpenAI if the | STRING |
| HIGH | src/openai/resources/content_provenance_checks.py | 133 | uploaded file. The content could still have been generated by OpenAI if the | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_x509_workload_identity.py | 700 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | tests/test_x509_workload_identity_regressions.py | 537 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | tests/test_client.py | 84 | def handle_request( | CODE |
| LOW | tests/lib/chat/test_single_pass_tools.py | 47 | def handle_request(request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | tests/respx2/transports.py | 75 | def handle_request(self, request: httpx.Request) -> httpx.Response: | CODE |
| LOW | src/openai/auth/_x509.py | 146 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/lib/responses/test_websocket_accumulator.py | 109 | # The existing SSE state needs item + part scaffolding. Prove it | COMMENT |
| MEDIUM | src/openai/lib/beta/agents/_files.py | 216 | # and archive (e.g. ZIP) upload/extraction; that orchestration is outside | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .devcontainer/devcontainer.json | 41 | // Configure tool-specific properties. | COMMENT |
| LOW | examples/realtime/push_to_talk_app.py | 1 | #!/usr/bin/env -S uv run | COMMENT |
| LOW | src/openai/_types.py | 101 | # method that uses `ResponseT` which would lead to an unacceptable | COMMENT |
| LOW | src/openai/_client.py | 181 | # Configure a custom httpx2 client. | COMMENT |
| LOW | src/openai/_client.py | 941 | data_residency: DataResidency | None = None, | COMMENT |
| LOW | src/openai/_models.py | 621 | return validate_type(type_=cast("type[object]", original_type or type_), value=value) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/openai/_utils/_path.py | 79 | Interpolate {name} placeholders in `template` from keyword arguments. Args: template: The template string c | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/openai/_base_client.py | 1055 | """This method is used as a callback for mutating the `Request` object | STRING |
| MEDIUM | src/openai/_base_client.py | 1676 | """This method is used as a callback for mutating the `Request` object | STRING |