The official Python library for the OpenAI API
This report presents the forensic synthetic code analysis of openai/openai-python, a Python project with 31,490 GitHub stars. SynthScan v2.0 examined 259,829 lines of code across 1852 source files, recording 13227 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 168.9 places this repository in the Strong AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 13227 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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/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 |
| HIGH | src/openai/types/beta/threads/message_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/runs/run_step.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/evals/run_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/evals/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 | …types/evals/create_eval_completions_run_data_source.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 | …evals/create_eval_completions_run_data_source_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/evals/run_cancel_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/evals/run_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/evals/run_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 | src/openai/types/fine_tuning/fine_tuning_job.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/fine_tuning/job_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/chat/completion_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 |
| 4911 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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/api_resources/beta/responses/test_input_items.py | 42 | response = client.beta.responses.input_items.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/responses/test_input_items.py | 53 | with client.beta.responses.input_items.with_streaming_response.list( | CODE |
| CRITICAL | tests/api_resources/beta/responses/test_input_items.py | 67 | client.beta.responses.input_items.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/responses/test_input_items.py | 98 | response = await async_client.beta.responses.input_items.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/responses/test_input_items.py | 109 | async with async_client.beta.responses.input_items.with_streaming_response.list( | CODE |
| CRITICAL | tests/api_resources/beta/responses/test_input_items.py | 123 | await async_client.beta.responses.input_items.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/responses/test_input_tokens.py | 66 | response = client.beta.responses.input_tokens.with_raw_response.count() | CODE |
| CRITICAL⚡ | tests/api_resources/beta/responses/test_input_tokens.py | 75 | with client.beta.responses.input_tokens.with_streaming_response.count() as response: | CODE |
| CRITICAL⚡ | tests/api_resources/beta/responses/test_input_tokens.py | 136 | response = await async_client.beta.responses.input_tokens.with_raw_response.count() | CODE |
| CRITICAL⚡ | tests/api_resources/beta/responses/test_input_tokens.py | 145 | async with async_client.beta.responses.input_tokens.with_streaming_response.count() as response: | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 62 | response = client.beta.chatkit.sessions.with_raw_response.create( | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 74 | with client.beta.chatkit.sessions.with_streaming_response.create( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_sessions.py | 95 | response = client.beta.chatkit.sessions.with_raw_response.cancel( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_sessions.py | 106 | with client.beta.chatkit.sessions.with_streaming_response.cancel( | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 120 | client.beta.chatkit.sessions.with_raw_response.cancel( | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 170 | response = await async_client.beta.chatkit.sessions.with_raw_response.create( | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 182 | async with async_client.beta.chatkit.sessions.with_streaming_response.create( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_sessions.py | 203 | response = await async_client.beta.chatkit.sessions.with_raw_response.cancel( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_sessions.py | 214 | async with async_client.beta.chatkit.sessions.with_streaming_response.cancel( | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 228 | await async_client.beta.chatkit.sessions.with_raw_response.cancel( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 31 | response = client.beta.chatkit.threads.with_raw_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 42 | with client.beta.chatkit.threads.with_streaming_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 56 | client.beta.chatkit.threads.with_raw_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 78 | response = client.beta.chatkit.threads.with_raw_response.list() | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 87 | with client.beta.chatkit.threads.with_streaming_response.list() as response: | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 105 | response = client.beta.chatkit.threads.with_raw_response.delete( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 116 | with client.beta.chatkit.threads.with_streaming_response.delete( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 154 | response = client.beta.chatkit.threads.with_raw_response.list_items( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 165 | with client.beta.chatkit.threads.with_streaming_response.list_items( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 198 | response = await async_client.beta.chatkit.threads.with_raw_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 209 | async with async_client.beta.chatkit.threads.with_streaming_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 223 | await async_client.beta.chatkit.threads.with_raw_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 245 | response = await async_client.beta.chatkit.threads.with_raw_response.list() | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 254 | async with async_client.beta.chatkit.threads.with_streaming_response.list() as response: | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 272 | response = await async_client.beta.chatkit.threads.with_raw_response.delete( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 283 | async with async_client.beta.chatkit.threads.with_streaming_response.delete( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 321 | response = await async_client.beta.chatkit.threads.with_raw_response.list_items( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/chatkit/test_threads.py | 332 | async with async_client.beta.chatkit.threads.with_streaming_response.list_items( | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 130 | client.beta.chatkit.threads.with_raw_response.delete( | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 179 | client.beta.chatkit.threads.with_raw_response.list_items( | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 297 | await async_client.beta.chatkit.threads.with_raw_response.delete( | CODE |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 346 | await async_client.beta.chatkit.threads.with_raw_response.list_items( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/threads/test_runs.py | 248 | client.beta.threads.runs.with_raw_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/threads/test_runs.py | 254 | client.beta.threads.runs.with_raw_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/threads/test_runs.py | 348 | response = client.beta.threads.runs.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/threads/test_runs.py | 360 | with client.beta.threads.runs.with_streaming_response.list( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/threads/test_runs.py | 798 | await async_client.beta.threads.runs.with_raw_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/threads/test_runs.py | 804 | await async_client.beta.threads.runs.with_raw_response.retrieve( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/threads/test_runs.py | 898 | response = await async_client.beta.threads.runs.with_raw_response.list( | CODE |
| CRITICAL⚡ | tests/api_resources/beta/threads/test_runs.py | 910 | async with async_client.beta.threads.runs.with_streaming_response.list( | CODE |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 80 | response = client.beta.threads.runs.with_raw_response.create( | CODE |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 93 | with client.beta.threads.runs.with_streaming_response.create( | CODE |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 109 | client.beta.threads.runs.with_raw_response.create( | CODE |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 170 | response = client.beta.threads.runs.with_raw_response.create( | CODE |
| 1082 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_x509_host_authority.py | 1 | CODE | |
| LOW | tests/test_httpx_compat.py | 1 | CODE | |
| LOW | tests/test_data_residency_regressions.py | 1 | CODE | |
| LOW | tests/test_dependency_constraints.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_debug_logging.py | 1 | CODE | |
| LOW | tests/test_streaming.py | 1 | CODE | |
| LOW | tests/test_mtls_http_client.py | 1 | CODE | |
| LOW | tests/test_x509_workload_identity_transport.py | 1 | CODE | |
| LOW | tests/test_upload_examples.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_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_uv_workflows.py | 1 | CODE | |
| LOW | tests/test_client.py | 1 | CODE | |
| LOW | tests/test_client.py | 37 | 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_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/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 | |
| LOW | tests/lib/test_embeddings.py | 1 | CODE | |
| LOW | tests/lib/test_websocket_redirects.py | 1 | CODE | |
| LOW | tests/lib/test_azure_auth.py | 1 | CODE | |
| LOW | tests/lib/test_webhooks.py | 1 | CODE | |
| LOW | tests/lib/test_bedrock_provider.py | 1 | CODE | |
| LOW | tests/lib/bedrock_live.py | 17 | CODE | |
| LOW | tests/lib/test_azure_provider_diagnostics.py | 1 | CODE | |
| LOW | tests/lib/utils.py | 1 | CODE | |
| LOW | tests/lib/utils.py | 4 | CODE | |
| LOW | tests/lib/utils.py | 4 | CODE | |
| LOW | tests/lib/test_vector_store_files.py | 1 | CODE | |
| LOW | tests/lib/test_bedrock_credential_chain.py | 1 | CODE | |
| LOW | tests/lib/test_audio_response_format.py | 1 | CODE | |
| LOW | tests/lib/test_fine_tuning_positional_arguments.py | 1 | CODE | |
| 3067 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | helpers.md | 480 | def current_run_step_snapshot() -> RunStep | 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_dependency_constraints.py | 16 | def test_optional_network_dependency_security_floors(name: str, extra: str, affected: str, patched: str) -> 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 | 374 | async def test_iterable_of_dictionaries(use_async: bool) -> None: | CODE |
| LOW⚡ | tests/test_response.py | 33 | def test_extract_response_type_direct_classes() -> None: | CODE |
| LOW⚡ | tests/test_response.py | 39 | def test_extract_response_type_direct_class_missing_type_arg() -> None: | CODE |
| LOW⚡ | tests/test_response.py | 47 | def test_extract_response_type_concrete_subclasses() -> None: | CODE |
| LOW⚡ | tests/test_response.py | 53 | def test_extract_response_type_binary_response() -> None: | CODE |
| LOW⚡ | tests/test_response.py | 61 | def test_response_parse_mismatched_basemodel(client: OpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 79 | async def test_async_response_parse_mismatched_basemodel(async_client: AsyncOpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 96 | def test_response_parse_custom_stream(client: OpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 111 | async def test_async_response_parse_custom_stream(async_client: AsyncOpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 130 | def test_response_parse_custom_model(client: OpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 146 | async def test_async_response_parse_custom_model(async_client: AsyncOpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 161 | def test_response_basemodel_request_id(client: OpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 185 | async def test_async_response_basemodel_request_id(client: OpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 206 | def test_response_parse_annotated_type(client: OpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 223 | async def test_async_response_parse_annotated_type(async_client: AsyncOpenAI) -> None: | CODE |
| LOW | tests/test_response.py | 276 | async def test_async_response_parse_bool(client: AsyncOpenAI, content: str, expected: bool) -> None: | CODE |
| LOW | tests/test_response.py | 295 | def test_response_parse_expect_model_union_non_json_content(client: OpenAI) -> None: | CODE |
| 1942 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 | 117 | def _set_httpx2_defaults(kwargs: dict[str, Any]) -> None: | CODE |
| LOW | src/openai/__init__.py | 46 | __all__ = [ | CODE |
| LOW | src/openai/_client.py | 105 | __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 | 846 | 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 | 5 | __all__ = ["VideoCreateError"] | 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/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/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 | 7 | __all__ = ["ImageGenCompletedEvent", "Usage", "UsageInputTokensDetails"] | CODE |
| LOW | src/openai/types/image_edit_partial_image_event.py | 7 | __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 | 7 | __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 |
| LOW | src/openai/types/embedding_create_params.py | 11 | __all__ = ["EmbeddingCreateParams"] | CODE |
| LOW | src/openai/types/audio_response_format.py | 5 | __all__ = ["AudioResponseFormat"] | CODE |
| 1359 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_uv_workflows.py | 94 | CODE | |
| LOW | tests/test_uv_workflows.py | 1359 | 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 | src/openai/_base_client.py | 2073 | CODE | |
| LOW | src/openai/_client.py | 157 | CODE | |
| LOW | src/openai/_client.py | 678 | CODE | |
| LOW | src/openai/_client.py | 899 | CODE | |
| LOW | src/openai/_client.py | 1433 | 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 | 208 | CODE | |
| LOW | src/openai/resources/completions.py | 366 | CODE | |
| LOW | src/openai/resources/completions.py | 524 | CODE | |
| LOW | src/openai/resources/completions.py | 617 | CODE | |
| LOW | src/openai/resources/completions.py | 775 | CODE | |
| LOW | src/openai/resources/completions.py | 933 | CODE | |
| LOW | src/openai/resources/completions.py | 1091 | CODE | |
| LOW | src/openai/resources/images.py | 50 | CODE | |
| LOW | src/openai/resources/images.py | 129 | CODE | |
| LOW | src/openai/resources/images.py | 254 | CODE | |
| LOW | src/openai/resources/images.py | 379 | CODE | |
| LOW | src/openai/resources/images.py | 504 | CODE | |
| LOW | src/openai/resources/images.py | 575 | CODE | |
| LOW | src/openai/resources/images.py | 696 | CODE | |
| LOW | src/openai/resources/images.py | 817 | CODE | |
| LOW | src/openai/resources/images.py | 938 | CODE | |
| LOW | src/openai/resources/images.py | 1025 | CODE | |
| LOW | src/openai/resources/images.py | 1104 | CODE | |
| LOW | src/openai/resources/images.py | 1229 | CODE | |
| LOW | src/openai/resources/images.py | 1354 | CODE | |
| LOW | src/openai/resources/images.py | 1479 | CODE | |
| LOW | src/openai/resources/images.py | 1550 | CODE | |
| LOW | src/openai/resources/images.py | 1671 | CODE | |
| LOW | src/openai/resources/images.py | 1792 | CODE | |
| LOW | src/openai/resources/images.py | 1913 | 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 | 107 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 503 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 899 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 1294 | CODE | |
| 221 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 | 118 | '{"id": "chatcmpl-ABfvbtVnTu5DeC4EFnRYj8mtfOM99", "object": "chat.completion", "created": 1727346143, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 193 | '{"id": "chatcmpl-ABfvcC8grKYsRkSoMp9CCAhbXAd0b", "object": "chat.completion", "created": 1727346144, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 272 | '{"id": "chatcmpl-ABfvjIatz0zrZu50gRbMtlp0asZpz", "object": "chat.completion", "created": 1727346151, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 322 | '{"id": "chatcmpl-ABfvp8qzboW92q8ONDF4DPHlI7ckC", "object": "chat.completion", "created": 1727346157, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 403 | '{"id": "chatcmpl-ABfvqhz4uUUWsw8Ohw2Mp9B4sKKV8", "object": "chat.completion", "created": 1727346158, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 474 | '{"id": "chatcmpl-ABfvtNiaTNUF6OymZUnEFc9lPq9p1", "object": "chat.completion", "created": 1727346161, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 560 | '{"id": "chatcmpl-ABfvvX7eB1KsfeZj8VcF3z7G7SbaA", "object": "chat.completion", "created": 1727346163, "m | CODE |
| HIGH | tests/lib/chat/test_completions.py | 587 | '{"id": "chatcmpl-ABfvwoKVWPQj2UPlAcAKM7s40GsRx", "object": "chat.completion", "created": 1727346164, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 638 | '{"id": "chatcmpl-ABfvx6Z4dchiW2nya1N8KMsHFrQRE", "object": "chat.completion", "created": 1727346165, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 714 | '{"id": "chatcmpl-ABfvyvfNWKcl7Ohqos4UFrmMs1v4C", "object": "chat.completion", "created": 1727346166, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 797 | '{"id": "chatcmpl-ABfvzdvCI6RaIkiEFNjqGXCSYnlzf", "object": "chat.completion", "created": 1727346167, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 875 | '{"id": "chatcmpl-ABrDYCa8W1w66eUxKDO8TQF1m6trT", "object": "chat.completion", "created": 1727389540, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 956 | '{"id": "chatcmpl-ABrDQWOiw0PK5JOsxl1D9ooeQgznq", "object": "chat.completion", "created": 1727389532, "model | CODE |
| HIGH | tests/lib/responses/test_responses.py | 36 | '{"id": "resp_689a0b2545288193953c892439b42e2800b2e36c65a1fd4b", "object": "response", "created_at": 1754925 | CODE |
| HIGH⚡ | scripts/castiron/test_custom_code_report.py | 309 | await check(true, true, 10, null); | CODE |
| HIGH⚡ | scripts/castiron/test_custom_code_report.py | 310 | await check(false, true, 21, null); | CODE |
| HIGH | scripts/castiron/test_custom_code_report.py | 294 | issues: {listComments() {}, updateComment: async x => writes.push(['update', x]), | CODE |
| HIGH | scripts/castiron/test_custom_code_report.py | 295 | createComment: async x => writes.push(['create', x])}}}; | 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 | 158 | '{"schema_version":1,"max_custom_patch_lines":null}', | CODE |
| HIGH | scripts/castiron/test_custom_code_budget.py | 358 | repos: {createCommitStatus: async value => published.push(value)}, | CODE |
| 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 |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_module_client.py | 194 | 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 | 229 | CODE | |
| LOW | tests/test_debug_logging.py | 275 | CODE | |
| LOW | tests/utils.py | 56 | CODE | |
| LOW | tests/test_uv_workflows.py | 394 | CODE | |
| LOW | tests/test_uv_workflows.py | 494 | CODE | |
| LOW | tests/test_uv_workflows.py | 580 | CODE | |
| LOW | tests/test_uv_workflows.py | 689 | CODE | |
| LOW | tests/test_uv_workflows.py | 769 | CODE | |
| LOW | tests/test_uv_workflows.py | 881 | CODE | |
| LOW | tests/test_uv_workflows.py | 2307 | CODE | |
| LOW | tests/test_uv_workflows.py | 2493 | CODE | |
| LOW | tests/test_uv_workflows.py | 2582 | CODE | |
| LOW | tests/test_uv_workflows.py | 2659 | CODE | |
| LOW | tests/test_uv_workflows.py | 2775 | CODE | |
| LOW | tests/test_uv_workflows.py | 2945 | CODE | |
| LOW | tests/test_uv_workflows.py | 3068 | CODE | |
| LOW | tests/test_uv_workflows.py | 3146 | CODE | |
| LOW | tests/test_uv_workflows.py | 3458 | CODE | |
| LOW | tests/test_uv_workflows.py | 3584 | CODE | |
| LOW | tests/test_uv_workflows.py | 3697 | CODE | |
| LOW | tests/test_uv_workflows.py | 3848 | CODE | |
| LOW | tests/test_uv_workflows.py | 3994 | CODE | |
| LOW | tests/test_uv_workflows.py | 4171 | CODE | |
| LOW | tests/test_uv_workflows.py | 4238 | CODE | |
| LOW | tests/test_uv_workflows.py | 4328 | CODE | |
| LOW | tests/test_uv_workflows.py | 4428 | CODE | |
| LOW | tests/test_uv_workflows.py | 4502 | CODE | |
| LOW | tests/test_uv_workflows.py | 4564 | CODE | |
| LOW | tests/test_uv_workflows.py | 4804 | CODE | |
| LOW | tests/test_uv_workflows.py | 4909 | CODE | |
| LOW | tests/test_uv_workflows.py | 4994 | CODE | |
| LOW | tests/test_uv_workflows.py | 5060 | CODE | |
| LOW | tests/test_uv_workflows.py | 5136 | CODE | |
| LOW | tests/test_uv_workflows.py | 5192 | CODE | |
| LOW | tests/test_uv_workflows.py | 5258 | CODE | |
| LOW | tests/test_uv_workflows.py | 5345 | CODE | |
| LOW | tests/test_uv_workflows.py | 5428 | CODE | |
| LOW | tests/test_uv_workflows.py | 6402 | CODE | |
| LOW | tests/test_uv_workflows.py | 6498 | 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 | |
| LOW | tests/lib/test_azure_websocket_redirects.py | 94 | CODE | |
| LOW | tests/respx2/patterns.py | 754 | CODE | |
| LOW | tests/respx2/models.py | 477 | CODE | |
| LOW | tests/respx2/router.py | 290 | CODE | |
| LOW | examples/image_stream.py | 11 | CODE | |
| LOW | examples/responses/websocket.py | 267 | CODE | |
| LOW | examples/realtime/realtime.py | 13 | CODE | |
| LOW | examples/realtime/azure_realtime.py | 15 | CODE | |
| LOW | examples/realtime/audio_util.py | 95 | CODE | |
| LOW | scripts/check-dependency-security.py | 134 | CODE | |
| 67 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 606 | except Exception as e: | CODE |
| LOW | README.md | 642 | except Exception as e: | 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 | 2147 | def get_platform() -> Platform: | CODE |
| MEDIUM | src/openai/_base_client.py | 2222 | def get_python_runtime() -> str: | CODE |
| MEDIUM | src/openai/_base_client.py | 2229 | def get_python_version() -> str: | CODE |
| MEDIUM | src/openai/_base_client.py | 2236 | def get_architecture() -> Arch: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2225 | except Exception: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2232 | except Exception: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2239 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 441 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 890 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 1098 | except Exception as err: | CODE |
| LOW | src/openai/_base_client.py | 1512 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 1721 | except Exception as err: | CODE |
| LOW | src/openai/_base_client.py | 2151 | 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 | 696 | except Exception: | CODE |
| LOW | src/openai/_models.py | 702 | 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 | 4192 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4256 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4288 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4302 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4649 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4711 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4743 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4753 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4087 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4151 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4183 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4197 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4544 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4606 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4638 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4648 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 357 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 420 | except Exception: | CODE |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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_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 | 116 | "user": "fake-user", | CODE |
| LOW | tests/lib/test_embeddings.py | 139 | "user": "fake-user", | CODE |
| LOW | tests/lib/test_embeddings.py | 171 | "user": "fake-user", | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 21 | EXTRA_HEADERS = {"api-key": "fake-key", "Cookie": "fake-cookie", "X-Custom": "fake-private-header"} | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 142 | api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client() | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 160 | api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client() | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 174 | assert headers["Authorization"] == "Bearer fake-key" | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 183 | api_key="fake-key", | CODE |
| LOW⚡ | tests/lib/test_websocket_redirects.py | 198 | 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 | 207 | api_key="fake-key", | CODE |
| LOW | tests/lib/test_websocket_redirects.py | 220 | 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 | 934 | json_data={"model": "placeholder"}, | 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 | 1100 | 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 | 44 | # 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 |
|---|---|---|---|---|
| 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 | pyproject.toml | 193 | # it's fine to just use Pyright. | 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 |
|---|---|---|---|---|
| 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 | 80 | def handle_request( | 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 |
|---|---|---|---|---|
| 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 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 | 621 | return validate_type(type_=cast("type[object]", original_type or type_), value=value) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/openai/_base_client.py | 985 | """This method is used as a callback for mutating the `Request` object | STRING |
| MEDIUM | src/openai/_base_client.py | 1604 | """This method is used as a callback for mutating the `Request` object | STRING |