The official Python library for the OpenAI API
This report summarizes scanner evidence for openai/openai-python, a Python project with 31,992 GitHub stars. SynthScan examined 412,217 lines of code across 2588 source files, recording 18883 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 148.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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 4163 finding(s).
Are imports declared and package/API names verified? 6233 finding(s).
Are wrappers, guards, and repeated structures necessary? 12272 finding(s).
Which changes need focused human review? 18883 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 18883 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/video_create_error.py | 0 | the request parameter associated with the error, or null if none was recorded. | STRING |
| HIGH | src/openai/types/beta/beta_response_error.py | 0 | the request parameter associated with the error, or null if none was recorded. | STRING |
| HIGH | src/openai/types/responses/response_error.py | 0 | the request parameter associated with the error, or null if none was recorded. | STRING |
| HIGH | src/openai/types/video_create_error.py | 0 | the original error type, or null if it was not recorded. | STRING |
| HIGH | src/openai/types/beta/beta_response_error.py | 0 | the original error type, or null if it was not recorded. | STRING |
| HIGH | src/openai/types/responses/response_error.py | 0 | the original error type, or null if it was not recorded. | 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 |
| 6255 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | helpers.md | 768 | prepared = client.beta.agents.environments.files.prepare( | CODE |
| CRITICAL | helpers.md | 782 | 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 | 183 | async with sdk.beta.agents.sessions.with_streaming_response.create( | CODE |
| CRITICAL | tests/lib/streaming/agents/test_creation_tools.py | 194 | 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 |
| 1665 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_voice_consents_security.py | 1 | CODE | |
| LOW | tests/test_x509_host_authority.py | 1 | CODE | |
| LOW | tests/test_agent_session_environment_reset.py | 1 | CODE | |
| LOW | tests/test_client_runtime_bindings.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_consumer_compatibility.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_websocket_terminal_flush.py | 1 | CODE | |
| LOW | tests/test_usage_cache_write.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_example_security.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_compaction_trigger_ids.py | 1 | CODE | |
| LOW | tests/test_external_keys_contract.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_vector_batch_compat.py | 1 | CODE | |
| LOW | tests/test_send_queue.py | 1 | CODE | |
| LOW | tests/test_environment_credentials.py | 1 | CODE | |
| LOW | tests/test_websocket_raw_reconnect_wire.py | 1 | CODE | |
| LOW | tests/test_image_markup_upload.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_websocket_recovery_regressions.py | 1 | CODE | |
| LOW | tests/test_uv_workflows.py | 1 | CODE | |
| LOW | tests/test_client.py | 1 | CODE | |
| LOW | tests/test_client.py | 42 | 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_decision_prompt_cache.py | 1 | CODE | |
| LOW | tests/test_httpx2_decompression.py | 1 | CODE | |
| 4273 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | helpers.md | 541 | def current_run_step_snapshot() -> RunStep | None | CODE |
| LOW | tests/test_voice_consents_security.py | 24 | async def test_consent_upload_security( | 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_client_runtime_bindings.py | 13 | def test_header_omission_resolves_original_client_module_binding(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/test_client_runtime_bindings.py | 28 | async def test_saved_client_class_retains_lexical_super_after_module_rebinding( | 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_consumer_compatibility.py | 13 | def test_compatibility_gate_selects_callers(tmp_path: Path, also_change: str | None) -> 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 | 66 | def test_import_does_not_load_assistants(statement: str) -> None: | CODE |
| LOW | tests/test_lazy_imports.py | 77 | def test_resource_packages_load_only_accessed_exports() -> None: | STRING |
| LOW | tests/test_lazy_imports.py | 101 | def test_computer_root_imports_preserve_helper_identity_without_eager_load() -> None: | STRING |
| LOW | tests/test_lazy_imports.py | 125 | def test_lazy_exports_preserve_public_import_contracts() -> None: | STRING |
| LOW | tests/test_lazy_imports.py | 178 | def test_first_requests_and_streams_do_not_load_assistants(asynchronous: bool) -> None: | STRING |
| LOW | tests/test_lazy_imports.py | 248 | 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 | 73 | def test_default_headers_option() -> None: | CODE |
| LOW | tests/test_module_client.py | 82 | def test_default_query_option() -> None: | CODE |
| LOW | tests/test_module_client.py | 123 | def test_only_api_key_results_in_openai_api() -> None: | CODE |
| LOW | tests/test_module_client.py | 131 | def test_azure_api_key_env_without_api_version() -> None: | CODE |
| LOW | tests/test_module_client.py | 143 | def test_azure_api_key_and_version_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 156 | def test_azure_api_key_version_and_endpoint_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 168 | def test_azure_azure_ad_token_version_and_endpoint_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 180 | def test_azure_azure_ad_token_provider_version_and_endpoint_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 195 | def test_azure_module_explicit_auth_precedence(forced: bool, mode: str) -> None: | CODE |
| LOW | tests/test_module_client.py | 232 | def test_azure_module_rejects_conflicting_explicit_auth(forced: bool) -> None: | CODE |
| LOW | tests/test_module_client.py | 243 | def test_azure_module_import_does_not_make_ambient_token_explicit() -> None: | CODE |
| LOW | tests/test_module_client.py | 269 | def test_azure_module_preserves_provider_ambiguity() -> None: | CODE |
| LOW | tests/test_module_client.py | 278 | def test_bedrock_token_and_region_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 289 | def test_bedrock_api_type_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 301 | def test_bedrock_api_type_uses_bedrock_credentials() -> None: | CODE |
| LOW | tests/test_module_client.py | 314 | def test_bedrock_api_type_uses_explicit_module_api_key() -> None: | CODE |
| LOW | tests/test_module_client.py | 327 | def test_bedrock_module_api_key_overrides_cached_env_token_after_load() -> None: | CODE |
| LOW | tests/test_module_client.py | 342 | def test_bedrock_module_api_key_switches_cached_aws_client_to_bearer() -> None: | CODE |
| LOW | tests/test_module_client.py | 366 | def test_bedrock_api_type_uses_token_provider_without_mutating_module_api_key() -> None: | CODE |
| LOW | tests/test_module_client.py | 378 | 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 | 249 | async def test_datetime_custom_format(use_async: bool) -> None: | CODE |
| LOW⚡ | tests/test_transform.py | 275 | async def test_pydantic_model_to_dictionary(use_async: bool) -> None: | CODE |
| LOW⚡ | tests/test_transform.py | 282 | async def test_pydantic_empty_model(use_async: bool) -> None: | CODE |
| LOW⚡ | tests/test_transform.py | 288 | async def test_pydantic_unknown_field(use_async: bool) -> None: | CODE |
| LOW⚡ | tests/test_transform.py | 296 | async def test_pydantic_mismatched_types(use_async: bool) -> None: | CODE |
| LOW | tests/test_transform.py | 308 | async def test_pydantic_mismatched_object_type(use_async: bool) -> None: | CODE |
| 3339 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/lib/test_browser_control.py | 290 | def set_checked(args: object) -> None: | CODE |
| LOW | tests/respx2/__init__.py | 29 | __all__ = [ | CODE |
| LOW | tests/respx2/mocks.py | 18 | __all__ = ["Mocker", "HTTPCoreMocker"] | CODE |
| LOW | examples/browser-use-demo/runner.py | 254 | def set_owner(self, owner: str) -> None: | CODE |
| LOW⚡ | src/openai/_httpx2.py | 127 | def _set_httpx2_defaults(kwargs: dict[str, Any]) -> None: | CODE |
| LOW | src/openai/__init__.py | 50 | __all__ = [ | CODE |
| LOW | src/openai/_client.py | 137 | __all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "OpenAI", "AsyncOpenAI", "Client", "AsyncClient"] | CODE |
| LOW | src/openai/_models.py | 97 | __all__ = ["BaseModel", "GenericModel"] | CODE |
| LOW | src/openai/_models.py | 876 | 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 | 12 | __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 | 13 | __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 |
| 1846 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_websocket_terminal_flush.py | 117 | except (StopIteration, WebSocketConnectionClosedError): | CODE |
| HIGH | tests/utils.py | 123 | except ValueError: | CODE |
| HIGH | tests/lib/test_beta_realtime_websocket_options.py | 29 | except ConnectionClosed: | CODE |
| HIGH | tests/lib/test_beta_realtime_websocket_options.py | 104 | except ConnectionClosed: | CODE |
| HIGH | tests/lib/test_generated_websocket_compression.py | 96 | except ConnectionClosed: | CODE |
| HIGH | tests/lib/test_beta_realtime_headers.py | 51 | except ConnectionClosed: | CODE |
| HIGH | tests/lib/test_websocket_query_serialization.py | 92 | except ConnectionClosed: | CODE |
| HIGH | tests/lib/test_realtime_translation_close.py | 59 | except ConnectionClosed: | 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/computer-desktop/exercise_container.py | 218 | except runtime.StartupCancelled: | CODE |
| HIGH | examples/computer-desktop/exercise_container.py | 531 | except subprocess.TimeoutExpired: | CODE |
| HIGH | examples/computer-desktop/exercise_container.py | 468 | except (OSError, RuntimeError, ValueError): | CODE |
| HIGH | examples/computer-desktop/exercise_container.py | 590 | except runtime.StartupCancelled: | CODE |
| HIGH | examples/computer-desktop/exercise_container.py | 865 | except ValueError: | CODE |
| HIGH | examples/computer-desktop/exercise_container.py | 737 | except ValueError: | CODE |
| HIGH | examples/computer-desktop/exercise_container.py | 726 | except ValueError: | CODE |
| HIGH | examples/computer-desktop/exercise_container.py | 983 | except RuntimeError: | CODE |
| HIGH | examples/computer-desktop/container_runtime.py | 258 | except FileNotFoundError: | CODE |
| HIGH | examples/computer-desktop/exercise_helper_env.py | 166 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise_helper_env.py | 88 | except KeyboardInterrupt: | CODE |
| HIGH | examples/computer-desktop/exercise_helper_env.py | 102 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise_helper_env.py | 112 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise_helper_env.py | 130 | except OSError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 94 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 103 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 145 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 209 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 234 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 249 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 273 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 298 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 311 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 399 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 165 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 715 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 794 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 565 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 572 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 623 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 705 | except FutureTimeoutError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 807 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 681 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 657 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 531 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/exercise.py | 762 | except ComputerUseError: | CODE |
| HIGH | examples/computer-desktop/guest.py | 125 | except OSError: | CODE |
| HIGH | examples/computer-desktop/guest.py | 138 | except BaseException: | CODE |
| HIGH | examples/computer-desktop/guest/start.py | 195 | except ProcessLookupError: | CODE |
| HIGH | examples/computer-desktop/guest/setup.py | 255 | except FileNotFoundError: | CODE |
| HIGH | examples/computer-desktop/guest/test_receipt.py | 92 | except ProcessLookupError: | CODE |
| HIGH | examples/computer-desktop/guest/vm_owner.py | 41 | except subprocess.TimeoutExpired: | CODE |
| HIGH | examples/computer-desktop/guest/vm_owner.py | 49 | except ProcessLookupError: | CODE |
| HIGH | examples/realtime/push_to_talk_app.py | 175 | except (ConnectionClosed, WebSocketConnectionClosedError): | CODE |
| HIGH | examples/realtime/push_to_talk_app.py | 332 | except KeyboardInterrupt: | CODE |
| HIGH | examples/realtime/audio_util.py | 186 | except KeyboardInterrupt: | CODE |
| HIGH | examples/browser/exercise_read_only.py | 209 | except BrowserError: | CODE |
| HIGH | examples/browser-use-demo/runner.py | 329 | except Exception: | CODE |
| HIGH | examples/browser-use-demo/runner.py | 340 | except Exception: | CODE |
| 41 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_streaming.py | 223 | b'"choices":[{"index":0,"delta":{"content":"hello"},"finish_reason":null}]}\n\n' | CODE |
| HIGH | tests/test_streaming.py | 565 | 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/test_browser_registration.py | 105 | "arguments": '{"tab_id":null}', | CODE |
| HIGH | tests/lib/test_browser_registration.py | 169 | "arguments": '{"tab_id":null}', | CODE |
| HIGH | tests/lib/test_browser_registration.py | 192 | "arguments": '{"tab_id":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/browser/read_only.py | 69 | if (visited > 2000 || omitted) { | CODE |
| HIGH | examples/browser/read_only.py | 79 | if (url.length > budget - bytes || encoder.encode(url).length > budget - bytes) { | CODE |
| HIGH | examples/live/transcript_grouper.py | 51 | grouper.push(event) | CODE |
| HIGH | examples/live/audio_transcript.py | 65 | await transcript.push(event) | CODE |
| HIGH | examples/browser-use-demo/exercise_ui.py | 34 | arguments='{"tab_id":null}', | CODE |
| HIGH | examples/browser-use-demo/exercise_ui.py | 80 | return image.naturalWidth === 1024 && getComputedStyle(image).display !== 'none'; | CODE |
| HIGH | src/openai/types/image_gen_completed_event.py | 73 | `user` value when `safety_identifier` is omitted, null, or empty. | STRING |
| HIGH | src/openai/types/image_generate_params.py | 115 | deprecated `user` parameter. If omitted, null, or empty, the API uses `user` | STRING |
| HIGH | src/openai/types/image_generate_params.py | 156 | `safety_identifier` is omitted, null, or empty. | STRING |
| HIGH | src/openai/types/image_edit_completed_event.py | 73 | `user` value when `safety_identifier` is omitted, null, or empty. | STRING |
| HIGH | src/openai/types/images_response.py | 79 | `user` value when `safety_identifier` is omitted, null, or empty. | STRING |
| HIGH | src/openai/types/image_edit_params.py | 140 | deprecated `user` parameter. If omitted, null, or empty, the API uses `user` | STRING |
| HIGH | src/openai/types/image_edit_params.py | 169 | `safety_identifier` is omitted, null, or empty. | STRING |
| 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 |
| 47 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_uv_workflows.py | 106 | CODE | |
| LOW | tests/test_uv_workflows.py | 1388 | CODE | |
| LOW | tests/lib/test_responses_tool_runner.py | 1441 | CODE | |
| LOW | tests/lib/test_responses_tool_runner.py | 2172 | CODE | |
| LOW | tests/lib/test_bedrock.py | 956 | 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 | src/openai/_base_client.py | 2179 | CODE | |
| LOW | src/openai/_client.py | 285 | CODE | |
| LOW | src/openai/_client.py | 578 | CODE | |
| LOW | src/openai/_client.py | 812 | CODE | |
| LOW | src/openai/_client.py | 1105 | CODE | |
| LOW | src/openai/_models.py | 323 | CODE | |
| LOW | src/openai/_models.py | 394 | CODE | |
| LOW | src/openai/_websocket_connection.py | 22 | CODE | |
| LOW | src/openai/_websocket_connection.py | 233 | 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 | 140 | CODE | |
| LOW | src/openai/resources/images.py | 300 | CODE | |
| LOW | src/openai/resources/images.py | 460 | CODE | |
| LOW | src/openai/resources/images.py | 620 | CODE | |
| LOW | src/openai/resources/images.py | 697 | CODE | |
| LOW | src/openai/resources/images.py | 844 | CODE | |
| LOW | src/openai/resources/images.py | 991 | CODE | |
| LOW | src/openai/resources/images.py | 1138 | CODE | |
| LOW | src/openai/resources/images.py | 1228 | CODE | |
| LOW | src/openai/resources/images.py | 1316 | CODE | |
| LOW | src/openai/resources/images.py | 1476 | CODE | |
| LOW | src/openai/resources/images.py | 1636 | CODE | |
| LOW | src/openai/resources/images.py | 1796 | CODE | |
| LOW | src/openai/resources/images.py | 1873 | CODE | |
| LOW | src/openai/resources/images.py | 2020 | CODE | |
| LOW | src/openai/resources/images.py | 2167 | CODE | |
| LOW | src/openai/resources/images.py | 2314 | CODE | |
| LOW | src/openai/resources/videos.py | 70 | CODE | |
| LOW | src/openai/resources/videos.py | 565 | CODE | |
| LOW | src/openai/resources/videos.py | 655 | CODE | |
| LOW | src/openai/resources/videos.py | 1152 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 58 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 299 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 490 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 619 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 860 | CODE | |
| LOW | src/openai/resources/beta/assistants.py | 1051 | CODE | |
| 326 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_voice_consents_security.py | 24 | CODE | |
| LOW | tests/test_module_client.py | 195 | CODE | |
| LOW | tests/test_httpx2.py | 670 | CODE | |
| LOW | tests/test_tls_hostname.py | 197 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 28 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 77 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 133 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 264 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 369 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 504 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 598 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 766 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 908 | CODE | |
| LOW | tests/test_websocket_terminal_flush.py | 1052 | 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 | 40 | CODE | |
| LOW | tests/test_streaming.py | 211 | CODE | |
| LOW | tests/test_streaming.py | 57 | CODE | |
| LOW | tests/test_retry_after_overflow.py | 29 | CODE | |
| LOW | tests/utils.py | 56 | CODE | |
| LOW | tests/test_vector_batch_compat.py | 43 | CODE | |
| LOW | tests/test_image_markup_upload.py | 24 | 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 | 1388 | CODE | |
| LOW | tests/test_uv_workflows.py | 2411 | CODE | |
| LOW | tests/test_uv_workflows.py | 2597 | CODE | |
| LOW | tests/test_uv_workflows.py | 2686 | CODE | |
| LOW | tests/test_uv_workflows.py | 2763 | CODE | |
| LOW | tests/test_uv_workflows.py | 2879 | CODE | |
| LOW | tests/test_uv_workflows.py | 3049 | CODE | |
| LOW | tests/test_uv_workflows.py | 3172 | CODE | |
| LOW | tests/test_uv_workflows.py | 3250 | CODE | |
| LOW | tests/test_uv_workflows.py | 3562 | CODE | |
| LOW | tests/test_uv_workflows.py | 3688 | CODE | |
| LOW | tests/test_uv_workflows.py | 3801 | CODE | |
| LOW | tests/test_uv_workflows.py | 3952 | CODE | |
| LOW | tests/test_uv_workflows.py | 4098 | CODE | |
| LOW | tests/test_uv_workflows.py | 4275 | CODE | |
| LOW | tests/test_uv_workflows.py | 4342 | CODE | |
| LOW | tests/test_uv_workflows.py | 4432 | CODE | |
| LOW | tests/test_uv_workflows.py | 4532 | CODE | |
| LOW | tests/test_uv_workflows.py | 4606 | CODE | |
| LOW | tests/test_uv_workflows.py | 4668 | CODE | |
| LOW | tests/test_uv_workflows.py | 4908 | CODE | |
| LOW | tests/test_uv_workflows.py | 5013 | CODE | |
| LOW | tests/test_uv_workflows.py | 5100 | CODE | |
| LOW | tests/test_uv_workflows.py | 5166 | CODE | |
| LOW | tests/test_uv_workflows.py | 5242 | CODE | |
| LOW | tests/test_uv_workflows.py | 5298 | CODE | |
| LOW | tests/test_uv_workflows.py | 5364 | CODE | |
| LOW | tests/test_uv_workflows.py | 5451 | CODE | |
| LOW | tests/test_uv_workflows.py | 5534 | CODE | |
| 287 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 626 | except Exception as e: | CODE |
| LOW | README.md | 662 | except Exception as e: | CODE |
| LOW | tests/test_uv_workflows.py | 1551 | except Exception: | CODE |
| LOW | tests/lib/test_vertex_live.py | 44 | except Exception as exc: | CODE |
| LOW | tests/lib/test_vertex_live.py | 156 | except Exception as exc: | CODE |
| LOW | tests/lib/test_websocket_recovery_lifecycle.py | 250 | except Exception as exc: | CODE |
| MEDIUM | tests/lib/test_websocket_recovery_lifecycle.py | 247 | def receive() -> None: | CODE |
| LOW | tests/lib/test_generated_websocket_compression.py | 99 | except Exception as exc: | CODE |
| LOW | tests/lib/test_beta_realtime_headers.py | 54 | except Exception as error: | CODE |
| LOW | tests/lib/test_vector_store_runtime.py | 316 | except Exception as exc: | CODE |
| LOW | tests/lib/test_websocket_query_serialization.py | 95 | except Exception as exc: | CODE |
| LOW | tests/lib/test_realtime_translation_close.py | 62 | except Exception as exc: | CODE |
| LOW | tests/lib/test_realtime_translation_close.py | 131 | except Exception as exc: | 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/lib/live/test_transcript_grouping.py | 348 | except Exception: | 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 | examples/browser/exercise_read_only.py | 176 | except Exception as error: | CODE |
| LOW | examples/browser/exercise_read_only.py | 190 | except Exception: | CODE |
| MEDIUM | examples/browser-use-demo/runner.py | 141 | def aclose(self) -> None: | CODE |
| LOW | examples/browser-use-demo/runner.py | 136 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 147 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 316 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 329 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 340 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 458 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 758 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 911 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 940 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 957 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 974 | except Exception: | CODE |
| LOW | examples/browser-use-demo/runner.py | 1053 | except Exception: | CODE |
| LOW | examples/browser-use-demo/server.py | 201 | except Exception: | CODE |
| LOW | examples/browser-use-demo/server.py | 252 | except Exception: | CODE |
| LOW | examples/browser-use-demo/server.py | 278 | except Exception: | CODE |
| LOW | examples/browser-use-demo/server.py | 336 | except Exception: | CODE |
| LOW | examples/browser-use-demo/server.py | 365 | except Exception: | CODE |
| MEDIUM | examples/browser-use-demo/server.py | 275 | def retire_launch() -> None: | CODE |
| MEDIUM | examples/browser-use-demo/server.py | 354 | def respond(self) -> None: | CODE |
| LOW | scripts/utils/ruffen-docs.py | 42 | except Exception as e: | CODE |
| MEDIUM | src/openai/_base_client.py | 2253 | def get_platform() -> Platform: | CODE |
| MEDIUM | src/openai/_base_client.py | 2328 | def get_python_runtime() -> str: | CODE |
| MEDIUM | src/openai/_base_client.py | 2335 | def get_python_version() -> str: | CODE |
| MEDIUM | src/openai/_base_client.py | 2342 | def get_architecture() -> Arch: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2331 | except Exception: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2338 | except Exception: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2345 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 497 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 997 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 1618 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 2257 | except Exception: | CODE |
| LOW | src/openai/_response.py | 243 | except Exception as exc: | CODE |
| LOW | src/openai/_legacy_response.py | 308 | except Exception as exc: | CODE |
| LOW | src/openai/_models.py | 642 | except Exception: | CODE |
| LOW | src/openai/_models.py | 671 | except Exception: | CODE |
| LOW | src/openai/_models.py | 719 | except Exception: | CODE |
| 105 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_consumer_compatibility.py | 35 | ["git", "-c", "user.name=Test", "-c", "user.email=test@example.org", "commit", "--no-gpg-sign", "-qm", "base"], | CODE |
| LOW | tests/test_send_queue_reconnect.py | 60 | api_key="fake-key", | CODE |
| LOW | tests/test_send_queue_reconnect.py | 103 | 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_websocket_raw_reconnect_wire.py | 72 | api_key="fake-key", | CODE |
| LOW | tests/test_websocket_raw_reconnect_wire.py | 96 | async with AsyncOpenAI(api_key="fake-key", websocket_base_url=url, http_client=async_http_client()) as client: | CODE |
| LOW | tests/test_websocket_raw_reconnect_wire.py | 118 | api_key="fake-key", | CODE |
| LOW | tests/test_websocket_recovery_regressions.py | 537 | api_key="fake-key", | CODE |
| LOW | tests/test_websocket_recovery_regressions.py | 560 | api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client() | CODE |
| LOW⚡ | tests/test_client.py | 3518 | AsyncOpenAI(api_key="fake-key", max_retries=1, http_client=httpx2.AsyncClient(transport=transport)) | CODE |
| LOW⚡ | tests/test_client.py | 3520 | else OpenAI(api_key="fake-key", max_retries=1, http_client=httpx2.Client(transport=transport)) | CODE |
| LOW | tests/test_client.py | 3469 | AsyncOpenAI(api_key="fake-key", http_client=httpx2.AsyncClient(transport=transport)) | CODE |
| LOW | tests/test_client.py | 3471 | else OpenAI(api_key="fake-key", http_client=httpx2.Client(transport=transport)) | CODE |
| LOW | tests/test_client.py | 3540 | client = AsyncOpenAI(api_key="fake-key") if is_async else OpenAI(api_key="fake-key") | CODE |
| LOW | tests/test_client.py | 3574 | AsyncOpenAI(api_key="fake-key", max_retries=max_retries, http_client=httpx2.AsyncClient(transport=transport)) | CODE |
| LOW | tests/test_client.py | 3576 | 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 | 27 | EXTRA_HEADERS = {"api-key": "fake-key", "Cookie": "fake-cookie", "X-Custom": "fake-private-header"} | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 158 | api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client() | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 176 | api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client() | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 190 | assert headers["Authorization"] == "Bearer fake-key" | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 199 | api_key="fake-key", | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 214 | 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 | 223 | api_key="fake-key", | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 236 | 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_websocket_recovery_lifecycle.py | 98 | async with AsyncOpenAI(api_key="fake-key") as client: | CODE |
| LOW | tests/lib/test_websocket_recovery_lifecycle.py | 147 | async with AsyncOpenAI(api_key="fake-key") as client: | CODE |
| LOW | tests/lib/test_websocket_recovery_lifecycle.py | 197 | async with AsyncOpenAI(api_key="fake-key") as client: | CODE |
| LOW | tests/lib/test_websocket_recovery_lifecycle.py | 242 | with OpenAI(api_key="fake-key") as client: | CODE |
| LOW | tests/lib/test_websocket_recovery_lifecycle.py | 307 | with OpenAI(api_key="fake-key") as client: | CODE |
| LOW | tests/lib/test_websocket_recovery_lifecycle.py | 340 | with OpenAI(api_key="fake-key") as client: | CODE |
| LOW | tests/lib/test_vertex_provider.py | 212 | client.get("/responses", cast_to=httpx2.Response, options={"headers": {"Authorization": "Bearer fake-user"}}) | CODE |
| LOW | tests/lib/test_vertex_provider.py | 491 | return "fake-token" | CODE |
| LOW | tests/lib/test_vertex_provider.py | 586 | headers["authorization"] = "Bearer fake-token" | CODE |
| LOW | tests/lib/test_websocket_entry_cleanup.py | 76 | async with AsyncOpenAI(api_key="fake-key") as client: | CODE |
| LOW | tests/lib/test_websocket_entry_cleanup.py | 127 | with OpenAI(api_key="fake-key") as client: | CODE |
| LOW | tests/lib/test_websocket_entry_cleanup.py | 159 | async with AsyncOpenAI(api_key="fake-key") as client: | CODE |
| LOW | tests/lib/test_websocket_entry_cleanup.py | 199 | async with AsyncOpenAI(api_key="fake-key") as client: | CODE |
| LOW⚡ | tests/lib/test_request_credentials.py | 30 | await check_two_requests(mode, name, first_key="fake-key-A") | CODE |
| LOW | tests/lib/test_request_credentials.py | 51 | return first_key if label == "A" else "fake-key-B" | CODE |
| LOW⚡ | tests/lib/test_request_credentials.py | 161 | assert received == {"A": [f"Bearer {first_key}"], "B": ["Bearer fake-key-B"]} | CODE |
| LOW⚡ | tests/lib/test_request_credentials.py | 163 | assert received == {"B": ["Bearer fake-key-B"]} | CODE |
| LOW⚡ | tests/lib/test_request_credentials.py | 165 | assert received == {"A": [], "B": ["Bearer fake-key-B"]} | 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 |
| 8 more matches not shown… | ||||
| 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 |
|---|---|---|---|---|
| MEDIUM | tests/lib/test_websocket_redirects.py | 46 | # 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 | 260 | # If the API responds with content that isn't JSON then we just return | COMMENT |
| LOW | src/openai/_legacy_response.py | 325 | # If the API responds with content that isn't JSON then we just return | COMMENT |
| LOW | src/openai/_models.py | 511 | # 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 | 85 | 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 |
|---|---|---|---|---|
| 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 |
|---|---|---|---|---|
| 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/_models.py | 641 | return validate_type(type_=original_type or type_, value=value) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/openai/_base_client.py | 1090 | """This method is used as a callback for mutating the `Request` object | STRING |
| MEDIUM | src/openai/_base_client.py | 1708 | """This method is used as a callback for mutating the `Request` object | STRING |