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,272 GitHub stars. SynthScan v2.0 examined 220,069 lines of code across 1699 source files, recording 12059 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 185.5 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 12059 distinct pattern matches across 16 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 |
| 4599 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 183 | with client.beta.threads.runs.with_streaming_response.create( | CODE |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 200 | client.beta.threads.runs.with_raw_response.create( | CODE |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 219 | response = client.beta.threads.runs.with_raw_response.retrieve( | CODE |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 232 | with client.beta.threads.runs.with_streaming_response.retrieve( | CODE |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 283 | response = client.beta.threads.runs.with_raw_response.update( | CODE |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 296 | with client.beta.threads.runs.with_streaming_response.update( | CODE |
| 1026 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 3 | CODE | |
| LOW | tests/test_module_client.py | 3 | CODE | |
| LOW | tests/test_transform.py | 1 | CODE | |
| LOW | tests/test_streaming.py | 1 | CODE | |
| LOW | tests/utils.py | 1 | CODE | |
| LOW | tests/test_send_queue.py | 3 | CODE | |
| LOW | tests/test_required_args.py | 1 | CODE | |
| LOW | tests/test_client.py | 3 | CODE | |
| LOW | tests/test_client.py | 21 | CODE | |
| LOW | tests/test_extract_files.py | 1 | CODE | |
| LOW | tests/test_utils/test_typing.py | 1 | CODE | |
| LOW | tests/test_utils/test_json.py | 1 | CODE | |
| LOW | tests/test_utils/test_path.py | 1 | CODE | |
| LOW | tests/lib/snapshots.py | 1 | CODE | |
| LOW | tests/lib/test_bedrock_auth_conformance.py | 1 | CODE | |
| LOW | tests/lib/test_pydantic.py | 1 | CODE | |
| LOW | tests/lib/test_audio.py | 1 | CODE | |
| LOW | tests/lib/test_bedrock_provider.py | 1 | CODE | |
| LOW | tests/lib/bedrock_live.py | 25 | 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_bedrock_credential_chain.py | 1 | CODE | |
| LOW | tests/lib/test_bedrock.py | 1 | CODE | |
| LOW | tests/lib/test_azure.py | 1 | CODE | |
| LOW | tests/lib/test_assistants.py | 1 | CODE | |
| LOW | tests/lib/chat/test_completions_streaming.py | 1 | CODE | |
| LOW | tests/lib/chat/test_completions.py | 1 | CODE | |
| LOW | tests/lib/responses/test_responses.py | 1 | CODE | |
| LOW | tests/api_resources/test_moderations.py | 3 | CODE | |
| LOW | tests/api_resources/test_images.py | 3 | CODE | |
| LOW | tests/api_resources/test_embeddings.py | 3 | CODE | |
| LOW | tests/api_resources/test_vector_stores.py | 3 | CODE | |
| LOW | tests/api_resources/test_videos.py | 3 | CODE | |
| LOW | tests/api_resources/test_realtime.py | 3 | CODE | |
| LOW | tests/api_resources/test_webhooks.py | 3 | CODE | |
| LOW | tests/api_resources/test_containers.py | 3 | CODE | |
| LOW | tests/api_resources/test_files.py | 3 | CODE | |
| LOW | tests/api_resources/test_responses.py | 3 | CODE | |
| LOW | tests/api_resources/test_skills.py | 3 | CODE | |
| LOW | tests/api_resources/test_models.py | 3 | CODE | |
| LOW | tests/api_resources/test_completions.py | 3 | CODE | |
| LOW | tests/api_resources/test_conversations.py | 3 | CODE | |
| LOW | tests/api_resources/test_evals.py | 3 | CODE | |
| LOW | tests/api_resources/test_uploads.py | 3 | CODE | |
| LOW | tests/api_resources/test_batches.py | 3 | CODE | |
| LOW | tests/api_resources/beta/test_realtime.py | 3 | CODE | |
| LOW | tests/api_resources/beta/test_responses.py | 3 | CODE | |
| LOW | tests/api_resources/beta/test_threads.py | 3 | CODE | |
| LOW | tests/api_resources/beta/test_assistants.py | 3 | CODE | |
| LOW | tests/api_resources/beta/responses/test_input_items.py | 3 | CODE | |
| LOW | tests/api_resources/beta/responses/test_input_tokens.py | 3 | CODE | |
| LOW | tests/api_resources/beta/chatkit/test_sessions.py | 3 | CODE | |
| LOW | tests/api_resources/beta/chatkit/test_threads.py | 3 | CODE | |
| LOW | tests/api_resources/beta/threads/test_runs.py | 3 | CODE | |
| LOW | tests/api_resources/beta/threads/test_messages.py | 3 | CODE | |
| LOW | tests/api_resources/beta/threads/runs/test_steps.py | 3 | CODE | |
| LOW | tests/api_resources/vector_stores/test_file_batches.py | 3 | CODE | |
| LOW | tests/api_resources/vector_stores/test_files.py | 3 | CODE | |
| LOW | tests/api_resources/evals/test_runs.py | 3 | CODE | |
| 2883 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/openai/__init__.py | 44 | __all__ = [ | CODE |
| LOW | src/openai/_client.py | 90 | __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 | 8 | __all__ = [ | CODE |
| LOW | src/openai/_exceptions.py | 17 | __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 |
| LOW | src/openai/types/completion_choice.py | 8 | __all__ = ["CompletionChoice", "Logprobs"] | CODE |
| LOW | src/openai/types/image_generate_params.py | 10 | __all__ = ["ImageGenerateParamsBase", "ImageGenerateParamsNonStreaming", "ImageGenerateParamsStreaming"] | CODE |
| LOW | src/openai/types/model.py | 7 | __all__ = ["Model"] | CODE |
| 1316 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | helpers.md | 480 | def current_run_step_snapshot() -> RunStep | 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 | 192 | def test_bedrock_token_and_region_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 203 | def test_bedrock_api_type_env() -> None: | CODE |
| LOW | tests/test_module_client.py | 215 | def test_bedrock_api_type_uses_bedrock_credentials() -> None: | CODE |
| LOW | tests/test_module_client.py | 228 | def test_bedrock_api_type_uses_explicit_module_api_key() -> None: | CODE |
| LOW | tests/test_module_client.py | 241 | def test_bedrock_module_api_key_overrides_cached_env_token_after_load() -> None: | CODE |
| LOW | tests/test_module_client.py | 256 | def test_bedrock_module_api_key_switches_cached_aws_client_to_bearer() -> None: | CODE |
| LOW | tests/test_module_client.py | 280 | def test_bedrock_api_type_uses_token_provider_without_mutating_module_api_key() -> None: | CODE |
| LOW | tests/test_module_client.py | 292 | 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 |
| LOW | tests/test_response.py | 312 | async def test_async_response_parse_expect_model_union_non_json_content(async_client: AsyncOpenAI) -> None: | CODE |
| LOW⚡ | tests/test_websocket_connection_options.py | 5 | def test_submodule_alias_is_preserved() -> None: | CODE |
| LOW⚡ | tests/test_websocket_connection_options.py | 12 | def test_public_types_alias_is_preserved() -> None: | CODE |
| LOW⚡ | tests/test_websocket_connection_options.py | 16 | def test_beta_realtime_import_still_works_with_old_alias() -> None: | CODE |
| LOW | tests/test_auth.py | 59 | def test_workload_identity_exchange_payload_and_cache() -> None: | CODE |
| LOW | tests/test_auth.py | 120 | def test_workload_identity_exchange_error() -> None: | CODE |
| LOW | tests/test_auth.py | 166 | def test_azure_managed_identity_token_provider() -> None: | CODE |
| LOW | tests/test_auth.py | 178 | def test_gcp_id_token_provider() -> None: | CODE |
| LOW | tests/test_streaming.py | 85 | async def test_multiple_events_with_data(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None: | CODE |
| LOW | tests/test_streaming.py | 109 | async def test_multiple_data_lines_with_empty_line(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None: | CODE |
| LOW | tests/test_streaming.py | 131 | async def test_data_json_escaped_double_new_line(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None: | CODE |
| LOW | tests/test_streaming.py | 166 | async def test_special_new_line_character( | CODE |
| LOW | tests/test_streaming.py | 197 | async def test_multi_byte_character_multiple_chunks( | CODE |
| LOW | tests/test_qs.py | 76 | def test_unknown_array_format() -> None: | CODE |
| LOW | tests/test_files.py | 13 | def test_pathlib_includes_file_name() -> None: | CODE |
| 1505 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/lib/test_bedrock.py | 905 | CODE | |
| LOW | src/openai/_base_client.py | 2025 | CODE | |
| LOW | src/openai/_client.py | 125 | CODE | |
| LOW | src/openai/_client.py | 573 | CODE | |
| LOW | src/openai/_client.py | 721 | CODE | |
| LOW | src/openai/_client.py | 1180 | CODE | |
| LOW | src/openai/_models.py | 303 | CODE | |
| LOW | src/openai/_models.py | 374 | CODE | |
| LOW | src/openai/providers/bedrock.py | 308 | CODE | |
| LOW | src/openai/resources/files.py | 191 | CODE | |
| LOW | src/openai/resources/files.py | 545 | CODE | |
| LOW | src/openai/resources/completions.py | 52 | CODE | |
| LOW | src/openai/resources/completions.py | 210 | CODE | |
| LOW | src/openai/resources/completions.py | 368 | CODE | |
| LOW | src/openai/resources/completions.py | 526 | CODE | |
| LOW | src/openai/resources/completions.py | 619 | CODE | |
| LOW | src/openai/resources/completions.py | 777 | CODE | |
| LOW | src/openai/resources/completions.py | 935 | CODE | |
| LOW | src/openai/resources/completions.py | 1093 | CODE | |
| LOW | src/openai/resources/images.py | 50 | CODE | |
| LOW | src/openai/resources/images.py | 129 | CODE | |
| LOW | src/openai/resources/images.py | 259 | CODE | |
| LOW | src/openai/resources/images.py | 389 | CODE | |
| LOW | src/openai/resources/images.py | 519 | CODE | |
| LOW | src/openai/resources/images.py | 590 | CODE | |
| LOW | src/openai/resources/images.py | 716 | CODE | |
| LOW | src/openai/resources/images.py | 842 | CODE | |
| LOW | src/openai/resources/images.py | 968 | CODE | |
| LOW | src/openai/resources/images.py | 1055 | CODE | |
| LOW | src/openai/resources/images.py | 1134 | CODE | |
| LOW | src/openai/resources/images.py | 1264 | CODE | |
| LOW | src/openai/resources/images.py | 1394 | CODE | |
| LOW | src/openai/resources/images.py | 1524 | CODE | |
| LOW | src/openai/resources/images.py | 1595 | CODE | |
| LOW | src/openai/resources/images.py | 1721 | CODE | |
| LOW | src/openai/resources/images.py | 1847 | CODE | |
| LOW | src/openai/resources/images.py | 1973 | CODE | |
| LOW | src/openai/resources/videos.py | 69 | CODE | |
| LOW | src/openai/resources/videos.py | 137 | CODE | |
| LOW | src/openai/resources/videos.py | 648 | CODE | |
| LOW | src/openai/resources/videos.py | 716 | 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 | 106 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 487 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 868 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 1248 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 1449 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 1499 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 1549 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 1598 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 1731 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 1931 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 1988 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 2369 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 2750 | CODE | |
| 212 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 | 115 | '{"id": "chatcmpl-ABfvbtVnTu5DeC4EFnRYj8mtfOM99", "object": "chat.completion", "created": 1727346143, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 187 | '{"id": "chatcmpl-ABfvcC8grKYsRkSoMp9CCAhbXAd0b", "object": "chat.completion", "created": 1727346144, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 263 | '{"id": "chatcmpl-ABfvjIatz0zrZu50gRbMtlp0asZpz", "object": "chat.completion", "created": 1727346151, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 313 | '{"id": "chatcmpl-ABfvp8qzboW92q8ONDF4DPHlI7ckC", "object": "chat.completion", "created": 1727346157, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 394 | '{"id": "chatcmpl-ABfvqhz4uUUWsw8Ohw2Mp9B4sKKV8", "object": "chat.completion", "created": 1727346158, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 460 | '{"id": "chatcmpl-ABfvtNiaTNUF6OymZUnEFc9lPq9p1", "object": "chat.completion", "created": 1727346161, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 546 | '{"id": "chatcmpl-ABfvvX7eB1KsfeZj8VcF3z7G7SbaA", "object": "chat.completion", "created": 1727346163, "m | CODE |
| HIGH | tests/lib/chat/test_completions.py | 573 | '{"id": "chatcmpl-ABfvwoKVWPQj2UPlAcAKM7s40GsRx", "object": "chat.completion", "created": 1727346164, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 624 | '{"id": "chatcmpl-ABfvx6Z4dchiW2nya1N8KMsHFrQRE", "object": "chat.completion", "created": 1727346165, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 698 | '{"id": "chatcmpl-ABfvyvfNWKcl7Ohqos4UFrmMs1v4C", "object": "chat.completion", "created": 1727346166, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 781 | '{"id": "chatcmpl-ABfvzdvCI6RaIkiEFNjqGXCSYnlzf", "object": "chat.completion", "created": 1727346167, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 859 | '{"id": "chatcmpl-ABrDYCa8W1w66eUxKDO8TQF1m6trT", "object": "chat.completion", "created": 1727389540, "model | CODE |
| HIGH | tests/lib/chat/test_completions.py | 937 | '{"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 | …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 | README.md | 543 | except Exception as e: | CODE |
| LOW | README.md | 579 | except Exception as e: | 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 |
| LOW | src/openai/_send_queue.py | 52 | except Exception: | CODE |
| LOW | src/openai/_send_queue.py | 69 | except Exception: | CODE |
| MEDIUM | src/openai/_base_client.py | 2099 | def get_platform() -> Platform: | CODE |
| MEDIUM | src/openai/_base_client.py | 2165 | def get_python_runtime() -> str: | CODE |
| MEDIUM | src/openai/_base_client.py | 2172 | def get_python_version() -> str: | CODE |
| MEDIUM | src/openai/_base_client.py | 2179 | def get_architecture() -> Arch: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2168 | except Exception: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2175 | except Exception: | CODE |
| LOW⚡ | src/openai/_base_client.py | 2182 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 424 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 861 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 1059 | except Exception as err: | CODE |
| LOW | src/openai/_base_client.py | 1471 | except Exception: | CODE |
| LOW | src/openai/_base_client.py | 1670 | except Exception as err: | CODE |
| LOW | src/openai/_base_client.py | 2103 | except Exception: | CODE |
| LOW | src/openai/_response.py | 247 | except Exception as exc: | CODE |
| LOW | src/openai/_legacy_response.py | 314 | 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/auth/_workload.py | 63 | except Exception as e: | CODE |
| LOW | src/openai/auth/_workload.py | 123 | except Exception as e: | CODE |
| LOW | src/openai/auth/_workload.py | 167 | except Exception as e: | CODE |
| MEDIUM | src/openai/auth/_workload.py | 56 | def get_token() -> str: | CODE |
| MEDIUM | src/openai/auth/_workload.py | 94 | def get_token() -> str: | CODE |
| MEDIUM | src/openai/auth/_workload.py | 147 | def get_token() -> str: | CODE |
| LOW | src/openai/providers/bedrock.py | 92 | except Exception as exc: | CODE |
| LOW | src/openai/providers/bedrock.py | 111 | except Exception as exc: | CODE |
| MEDIUM | src/openai/providers/bedrock.py | 87 | def _resolve_token(self) -> str: | CODE |
| MEDIUM | src/openai/providers/bedrock.py | 104 | def _resolve_token_async(self) -> str: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4045 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4109 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4141 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4155 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4502 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4564 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4596 | except Exception: | CODE |
| LOW | src/openai/resources/beta/responses/responses.py | 4606 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 3996 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4060 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4092 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4106 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4453 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4515 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4547 | except Exception: | CODE |
| LOW | src/openai/resources/responses/responses.py | 4557 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 356 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 419 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 451 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 465 | except Exception: | CODE |
| LOW | src/openai/resources/realtime/realtime.py | 836 | except Exception: | CODE |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/utils.py | 56 | CODE | |
| LOW | tests/lib/test_bedrock_auth_conformance.py | 117 | CODE | |
| LOW | tests/lib/test_audio.py | 19 | CODE | |
| LOW | tests/lib/test_audio.py | 54 | 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 | src/openai/_base_client.py | 498 | CODE | |
| LOW | src/openai/_streaming.py | 55 | CODE | |
| LOW | src/openai/_streaming.py | 165 | CODE | |
| LOW | src/openai/_streaming.py | 339 | CODE | |
| LOW | src/openai/_qs.py | 65 | CODE | |
| LOW | src/openai/_models.py | 588 | CODE | |
| LOW | src/openai/_models.py | 757 | CODE | |
| LOW | src/openai/_utils/_transform.py | 236 | CODE | |
| LOW | src/openai/_utils/_transform.py | 402 | CODE | |
| LOW | src/openai/types/responses/parsed_response.py | 119 | CODE | |
| LOW | src/openai/types/responses/response.py | 472 | CODE | |
| LOW | src/openai/resources/videos.py | 171 | CODE | |
| LOW | src/openai/resources/videos.py | 750 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 3992 | CODE | |
| LOW | src/openai/resources/beta/responses/responses.py | 4449 | CODE | |
| LOW | src/openai/resources/vector_stores/files.py | 360 | CODE | |
| LOW | src/openai/resources/vector_stores/files.py | 814 | CODE | |
| LOW | src/openai/resources/vector_stores/file_batches.py | 331 | CODE | |
| LOW | src/openai/resources/vector_stores/file_batches.py | 719 | CODE | |
| LOW | src/openai/resources/responses/responses.py | 3943 | CODE | |
| LOW | src/openai/resources/responses/responses.py | 4400 | CODE | |
| LOW | src/openai/resources/uploads/uploads.py | 414 | CODE | |
| LOW | src/openai/resources/realtime/realtime.py | 303 | CODE | |
| LOW | src/openai/resources/realtime/realtime.py | 783 | CODE | |
| LOW | src/openai/resources/audio/translations.py | 366 | CODE | |
| LOW | src/openai/resources/audio/transcriptions.py | 1002 | CODE | |
| LOW | src/openai/lib/_validators.py | 451 | CODE | |
| LOW | src/openai/lib/_validators.py | 640 | CODE | |
| LOW | src/openai/lib/_parsing/_responses.py | 53 | CODE | |
| LOW | src/openai/lib/_parsing/_completions.py | 86 | CODE | |
| LOW | src/openai/lib/streaming/_deltas.py | 6 | CODE | |
| LOW | src/openai/lib/streaming/_assistants.py | 980 | CODE | |
| LOW | src/openai/lib/streaming/_assistants.py | 255 | CODE | |
| LOW | src/openai/lib/streaming/_assistants.py | 687 | CODE | |
| LOW | src/openai/lib/streaming/chat/_completions.py | 360 | CODE | |
| LOW | src/openai/lib/streaming/chat/_completions.py | 493 | CODE | |
| LOW | src/openai/lib/streaming/responses/_responses.py | 247 | CODE | |
| LOW | src/openai/lib/streaming/responses/_responses.py | 325 | CODE | |
| LOW | src/openai/helpers/local_audio_player.py | 104 | CODE | |
| LOW | src/openai/helpers/local_audio_player.py | 119 | 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 | 1058 | 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 |
|---|---|---|---|---|
| LOW | pyproject.toml | 193 | # it's fine to just use Pyright. | COMMENT |
| LOW | src/openai/_response.py | 263 | # If the API responds with content that isn't JSON then we just return | COMMENT |
| LOW | src/openai/_legacy_response.py | 330 | # If the API responds with content that isn't JSON then we just return | COMMENT |
| LOW | src/openai/_models.py | 491 | # If the type cannot be reconstructed, just return the validated list | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/openai/_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 | 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/_client.py | 141 | # Configure a custom httpx client. | 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 |
|---|---|---|---|---|
| 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_azure.py | 919 | json_data={"model": "placeholder"}, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/openai/_base_client.py | 950 | """This method is used as a callback for mutating the `Request` object | STRING |
| MEDIUM | src/openai/_base_client.py | 1557 | """This method is used as a callback for mutating the `Request` object | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_client.py | 82 | def handle_request( | CODE |