Repository Analysis

openai/openai-python

The official Python library for the OpenAI API

185.5 Strong AI signal View on GitHub

Analysis Overview

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).

185.5
Adjusted Score
185.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
31.3K
Stars
Python
Language
220.1K
Lines of Code
1.7K
Files
12.1K
Pattern Hits
2026-07-14
Scan Date
3.39
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 1086HIGH 4679MEDIUM 20LOW 6274

Directory Score Breakdown

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.

Pattern Findings

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.

Cross-File Repetition4659 hits · 23295 pts
SeverityFileLineSnippetContext
HIGHsrc/openai/_response.py0close the response and release the connection. automatically called if the response body is read to completion.STRING
HIGHsrc/openai/_streaming.py0close the response and release the connection. automatically called if the response body is read to completion.STRING
HIGHsrc/openai/lib/streaming/chat/_completions.py0close the response and release the connection. automatically called if the response body is read to completion.STRING
HIGHsrc/openai/lib/streaming/responses/_responses.py0close the response and release the connection. automatically called if the response body is read to completion.STRING
HIGHsrc/openai/_client.py0use uploads to upload large files in multiple parts.STRING
HIGHsrc/openai/resources/uploads/parts.py0use uploads to upload large files in multiple parts.STRING
HIGHsrc/openai/resources/uploads/uploads.py0use uploads to upload large files in multiple parts.STRING
HIGHsrc/openai/types/eval_retrieve_response.py0a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase=STRING
HIGHsrc/openai/types/eval_list_response.py0a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase=STRING
HIGHsrc/openai/types/eval_update_response.py0a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase=STRING
HIGHsrc/openai/types/eval_create_response.py0a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase=STRING
HIGHsrc/openai/types/eval_retrieve_response.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_list_response.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_update_response.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_custom_data_source_config.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_create_response.py0the 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.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_retrieve_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/vector_store_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/batch_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/vector_store.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/batch.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/vector_store_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_list_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_update_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_create_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…ai/types/eval_stored_completions_data_source_config.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/thread.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/thread_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/thread_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/assistant.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/beta_responses_client_event.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…openai/types/beta/beta_responses_client_event_param.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/response_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/assistant_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/beta_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/assistant_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/thread_create_and_run_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/realtime/realtime_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…nai/types/beta/realtime/response_create_event_param.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/realtime/response_create_event.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/run.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/message_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/run_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/run_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/message.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/message_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/runs/run_step.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_retrieve_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…types/evals/create_eval_completions_run_data_source.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…evals/create_eval_completions_run_data_source_param.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_cancel_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_list_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_create_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/fine_tuning/fine_tuning_job.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/fine_tuning/job_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/chat/completion_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
4599 more matches not shown…
Hallucination Indicators1086 hits · 12000 pts
SeverityFileLineSnippetContext
CRITICALtests/api_resources/beta/responses/test_input_items.py42 response = client.beta.responses.input_items.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py53 with client.beta.responses.input_items.with_streaming_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py67 client.beta.responses.input_items.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py98 response = await async_client.beta.responses.input_items.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py109 async with async_client.beta.responses.input_items.with_streaming_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py123 await async_client.beta.responses.input_items.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_tokens.py66 response = client.beta.responses.input_tokens.with_raw_response.count()CODE
CRITICALtests/api_resources/beta/responses/test_input_tokens.py75 with client.beta.responses.input_tokens.with_streaming_response.count() as response:CODE
CRITICALtests/api_resources/beta/responses/test_input_tokens.py136 response = await async_client.beta.responses.input_tokens.with_raw_response.count()CODE
CRITICALtests/api_resources/beta/responses/test_input_tokens.py145 async with async_client.beta.responses.input_tokens.with_streaming_response.count() as response:CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py62 response = client.beta.chatkit.sessions.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py74 with client.beta.chatkit.sessions.with_streaming_response.create(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py95 response = client.beta.chatkit.sessions.with_raw_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py106 with client.beta.chatkit.sessions.with_streaming_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py120 client.beta.chatkit.sessions.with_raw_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py170 response = await async_client.beta.chatkit.sessions.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py182 async with async_client.beta.chatkit.sessions.with_streaming_response.create(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py203 response = await async_client.beta.chatkit.sessions.with_raw_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py214 async with async_client.beta.chatkit.sessions.with_streaming_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py228 await async_client.beta.chatkit.sessions.with_raw_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py31 response = client.beta.chatkit.threads.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py42 with client.beta.chatkit.threads.with_streaming_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py56 client.beta.chatkit.threads.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py78 response = client.beta.chatkit.threads.with_raw_response.list()CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py87 with client.beta.chatkit.threads.with_streaming_response.list() as response:CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py105 response = client.beta.chatkit.threads.with_raw_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py116 with client.beta.chatkit.threads.with_streaming_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py154 response = client.beta.chatkit.threads.with_raw_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py165 with client.beta.chatkit.threads.with_streaming_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py198 response = await async_client.beta.chatkit.threads.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py209 async with async_client.beta.chatkit.threads.with_streaming_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py223 await async_client.beta.chatkit.threads.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py245 response = await async_client.beta.chatkit.threads.with_raw_response.list()CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py254 async with async_client.beta.chatkit.threads.with_streaming_response.list() as response:CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py272 response = await async_client.beta.chatkit.threads.with_raw_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py283 async with async_client.beta.chatkit.threads.with_streaming_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py321 response = await async_client.beta.chatkit.threads.with_raw_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py332 async with async_client.beta.chatkit.threads.with_streaming_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py130 client.beta.chatkit.threads.with_raw_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py179 client.beta.chatkit.threads.with_raw_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py297 await async_client.beta.chatkit.threads.with_raw_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py346 await async_client.beta.chatkit.threads.with_raw_response.list_items(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py248 client.beta.threads.runs.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py254 client.beta.threads.runs.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py348 response = client.beta.threads.runs.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py360 with client.beta.threads.runs.with_streaming_response.list(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py798 await async_client.beta.threads.runs.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py804 await async_client.beta.threads.runs.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py898 response = await async_client.beta.threads.runs.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py910 async with async_client.beta.threads.runs.with_streaming_response.list(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py80 response = client.beta.threads.runs.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py93 with client.beta.threads.runs.with_streaming_response.create(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py109 client.beta.threads.runs.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py170 response = client.beta.threads.runs.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py183 with client.beta.threads.runs.with_streaming_response.create(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py200 client.beta.threads.runs.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py219 response = client.beta.threads.runs.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py232 with client.beta.threads.runs.with_streaming_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py283 response = client.beta.threads.runs.with_raw_response.update(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py296 with client.beta.threads.runs.with_streaming_response.update(CODE
1026 more matches not shown…
Unused Imports2943 hits · 2330 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py3CODE
LOWtests/test_module_client.py3CODE
LOWtests/test_transform.py1CODE
LOWtests/test_streaming.py1CODE
LOWtests/utils.py1CODE
LOWtests/test_send_queue.py3CODE
LOWtests/test_required_args.py1CODE
LOWtests/test_client.py3CODE
LOWtests/test_client.py21CODE
LOWtests/test_extract_files.py1CODE
LOWtests/test_utils/test_typing.py1CODE
LOWtests/test_utils/test_json.py1CODE
LOWtests/test_utils/test_path.py1CODE
LOWtests/lib/snapshots.py1CODE
LOWtests/lib/test_bedrock_auth_conformance.py1CODE
LOWtests/lib/test_pydantic.py1CODE
LOWtests/lib/test_audio.py1CODE
LOWtests/lib/test_bedrock_provider.py1CODE
LOWtests/lib/bedrock_live.py25CODE
LOWtests/lib/utils.py1CODE
LOWtests/lib/utils.py4CODE
LOWtests/lib/utils.py4CODE
LOWtests/lib/test_bedrock_credential_chain.py1CODE
LOWtests/lib/test_bedrock.py1CODE
LOWtests/lib/test_azure.py1CODE
LOWtests/lib/test_assistants.py1CODE
LOWtests/lib/chat/test_completions_streaming.py1CODE
LOWtests/lib/chat/test_completions.py1CODE
LOWtests/lib/responses/test_responses.py1CODE
LOWtests/api_resources/test_moderations.py3CODE
LOWtests/api_resources/test_images.py3CODE
LOWtests/api_resources/test_embeddings.py3CODE
LOWtests/api_resources/test_vector_stores.py3CODE
LOWtests/api_resources/test_videos.py3CODE
LOWtests/api_resources/test_realtime.py3CODE
LOWtests/api_resources/test_webhooks.py3CODE
LOWtests/api_resources/test_containers.py3CODE
LOWtests/api_resources/test_files.py3CODE
LOWtests/api_resources/test_responses.py3CODE
LOWtests/api_resources/test_skills.py3CODE
LOWtests/api_resources/test_models.py3CODE
LOWtests/api_resources/test_completions.py3CODE
LOWtests/api_resources/test_conversations.py3CODE
LOWtests/api_resources/test_evals.py3CODE
LOWtests/api_resources/test_uploads.py3CODE
LOWtests/api_resources/test_batches.py3CODE
LOWtests/api_resources/beta/test_realtime.py3CODE
LOWtests/api_resources/beta/test_responses.py3CODE
LOWtests/api_resources/beta/test_threads.py3CODE
LOWtests/api_resources/beta/test_assistants.py3CODE
LOWtests/api_resources/beta/responses/test_input_items.py3CODE
LOWtests/api_resources/beta/responses/test_input_tokens.py3CODE
LOWtests/api_resources/beta/chatkit/test_sessions.py3CODE
LOWtests/api_resources/beta/chatkit/test_threads.py3CODE
LOWtests/api_resources/beta/threads/test_runs.py3CODE
LOWtests/api_resources/beta/threads/test_messages.py3CODE
LOWtests/api_resources/beta/threads/runs/test_steps.py3CODE
LOWtests/api_resources/vector_stores/test_file_batches.py3CODE
LOWtests/api_resources/vector_stores/test_files.py3CODE
LOWtests/api_resources/evals/test_runs.py3CODE
2883 more matches not shown…
Modern Structural Boilerplate1376 hits · 1376 pts
SeverityFileLineSnippetContext
LOWsrc/openai/__init__.py44__all__ = [CODE
LOWsrc/openai/_client.py90__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "OpenAI", "AsyncOpenAI", "Client", "AsyncClient"]CODE
LOWsrc/openai/_models.py96__all__ = ["BaseModel", "GenericModel"]CODE
LOWsrc/openai/_models.py846def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None:CODE
LOWsrc/openai/pagination.py8__all__ = [CODE
LOWsrc/openai/_exceptions.py17__all__ = [CODE
LOWsrc/openai/types/other_file_chunking_strategy_object.py7__all__ = ["OtherFileChunkingStrategyObject"]CODE
LOWsrc/openai/types/upload_complete_params.py9__all__ = ["UploadCompleteParams"]CODE
LOWsrc/openai/types/skill.py7__all__ = ["Skill"]CODE
LOWsrc/openai/types/video_create_error.py5__all__ = ["VideoCreateError"]CODE
LOWsrc/openai/types/file_purpose.py5__all__ = ["FilePurpose"]CODE
LOWsrc/openai/types/eval_retrieve_response.py19__all__ = [CODE
LOWsrc/openai/types/image_model.py5__all__ = ["ImageModel"]CODE
LOWsrc/openai/types/vector_store_search_params.py12__all__ = ["VectorStoreSearchParams", "Filters", "RankingOptions"]CODE
LOWsrc/openai/types/batch_usage.py5__all__ = ["BatchUsage", "InputTokensDetails", "OutputTokensDetails"]CODE
LOWsrc/openai/types/model_deleted.py5__all__ = ["ModelDeleted"]CODE
LOWsrc/openai/types/container_create_params.py14__all__ = ["ContainerCreateParams", "ExpiresAfter", "NetworkPolicy", "Skill"]CODE
LOWsrc/openai/types/moderation_text_input_param.py7__all__ = ["ModerationTextInputParam"]CODE
LOWsrc/openai/types/vector_store_create_params.py12__all__ = ["VectorStoreCreateParams", "ExpiresAfter"]CODE
LOWsrc/openai/types/batch_create_params.py10__all__ = ["BatchCreateParams", "OutputExpiresAfter"]CODE
LOWsrc/openai/types/video_size.py5__all__ = ["VideoSize"]CODE
LOWsrc/openai/types/eval_list_params.py7__all__ = ["EvalListParams"]CODE
LOWsrc/openai/types/skill_update_params.py7__all__ = ["SkillUpdateParams"]CODE
LOWsrc/openai/types/moderation_create_params.py12__all__ = ["ModerationCreateParams"]CODE
LOWsrc/openai/types/eval_update_params.py10__all__ = ["EvalUpdateParams"]CODE
LOWsrc/openai/types/video_delete_response.py7__all__ = ["VideoDeleteResponse"]CODE
LOWsrc/openai/types/embedding_model.py5__all__ = ["EmbeddingModel"]CODE
LOWsrc/openai/types/upload.py9__all__ = ["Upload"]CODE
LOWsrc/openai/types/completion.py10__all__ = ["Completion"]CODE
LOWsrc/openai/types/video_model.py6__all__ = ["VideoModel"]CODE
LOWsrc/openai/types/file_chunking_strategy.py10__all__ = ["FileChunkingStrategy"]CODE
LOWsrc/openai/types/file_chunking_strategy_param.py11__all__ = ["FileChunkingStrategyParam"]CODE
LOWsrc/openai/types/embedding.py8__all__ = ["Embedding"]CODE
LOWsrc/openai/types/vector_store.py9__all__ = ["VectorStore", "FileCounts", "ExpiresAfter"]CODE
LOWsrc/openai/types/video_get_character_response.py7__all__ = ["VideoGetCharacterResponse"]CODE
LOWsrc/openai/types/file_create_params.py10__all__ = ["FileCreateParams", "ExpiresAfter"]CODE
LOWsrc/openai/types/video_create_character_params.py9__all__ = ["VideoCreateCharacterParams"]CODE
LOWsrc/openai/types/video_download_content_params.py7__all__ = ["VideoDownloadContentParams"]CODE
LOWsrc/openai/types/skill_create_params.py10__all__ = ["SkillCreateParams"]CODE
LOWsrc/openai/types/moderation.py10__all__ = ["Moderation", "Categories", "CategoryAppliedInputTypes", "CategoryScores"]CODE
LOWsrc/openai/types/image_gen_completed_event.py7__all__ = ["ImageGenCompletedEvent", "Usage", "UsageInputTokensDetails"]CODE
LOWsrc/openai/types/image_edit_partial_image_event.py7__all__ = ["ImageEditPartialImageEvent"]CODE
LOWsrc/openai/types/eval_create_params.py18__all__ = [CODE
LOWsrc/openai/types/batch.py12__all__ = ["Batch", "Errors"]CODE
LOWsrc/openai/types/video_edit_params.py10__all__ = ["VideoEditParams", "Video", "VideoVideoReferenceInputParam"]CODE
LOWsrc/openai/types/image_input_reference_param.py7__all__ = ["ImageInputReferenceParam"]CODE
LOWsrc/openai/types/skill_list_params.py7__all__ = ["SkillListParams"]CODE
LOWsrc/openai/types/image_edit_stream_event.py10__all__ = ["ImageEditStreamEvent"]CODE
LOWsrc/openai/types/completion_create_params.py11__all__ = ["CompletionCreateParamsBase", "CompletionCreateParamsNonStreaming", "CompletionCreateParamsStreaming"]CODE
LOWsrc/openai/types/auto_file_chunking_strategy_param.py7__all__ = ["AutoFileChunkingStrategyParam"]CODE
LOWsrc/openai/types/video_create_params.py14__all__ = ["VideoCreateParams", "InputReference"]CODE
LOWsrc/openai/types/vector_store_update_params.py10__all__ = ["VectorStoreUpdateParams", "ExpiresAfter"]CODE
LOWsrc/openai/types/image_gen_partial_image_event.py7__all__ = ["ImageGenPartialImageEvent"]CODE
LOWsrc/openai/types/moderation_image_url_input_param.py7__all__ = ["ModerationImageURLInputParam", "ImageURL"]CODE
LOWsrc/openai/types/batch_list_params.py7__all__ = ["BatchListParams"]CODE
LOWsrc/openai/types/embedding_create_params.py11__all__ = ["EmbeddingCreateParams"]CODE
LOWsrc/openai/types/audio_response_format.py5__all__ = ["AudioResponseFormat"]CODE
LOWsrc/openai/types/completion_choice.py8__all__ = ["CompletionChoice", "Logprobs"]CODE
LOWsrc/openai/types/image_generate_params.py10__all__ = ["ImageGenerateParamsBase", "ImageGenerateParamsNonStreaming", "ImageGenerateParamsStreaming"]CODE
LOWsrc/openai/types/model.py7__all__ = ["Model"]CODE
1316 more matches not shown…
Hyper-Verbose Identifiers1565 hits · 1324 pts
SeverityFileLineSnippetContext
LOWhelpers.md480def current_run_step_snapshot() -> RunStep | NoneCODE
LOWtests/conftest.py26def pytest_collection_modifyitems(items: list[pytest.Function]) -> None:CODE
LOWtests/test_module_client.py72def test_default_headers_option() -> None:CODE
LOWtests/test_module_client.py81def test_default_query_option() -> None:CODE
LOWtests/test_module_client.py122def test_only_api_key_results_in_openai_api() -> None:CODE
LOWtests/test_module_client.py130def test_azure_api_key_env_without_api_version() -> None:CODE
LOWtests/test_module_client.py142def test_azure_api_key_and_version_env() -> None:CODE
LOWtests/test_module_client.py155def test_azure_api_key_version_and_endpoint_env() -> None:CODE
LOWtests/test_module_client.py167def test_azure_azure_ad_token_version_and_endpoint_env() -> None:CODE
LOWtests/test_module_client.py179def test_azure_azure_ad_token_provider_version_and_endpoint_env() -> None:CODE
LOWtests/test_module_client.py192def test_bedrock_token_and_region_env() -> None:CODE
LOWtests/test_module_client.py203def test_bedrock_api_type_env() -> None:CODE
LOWtests/test_module_client.py215def test_bedrock_api_type_uses_bedrock_credentials() -> None:CODE
LOWtests/test_module_client.py228def test_bedrock_api_type_uses_explicit_module_api_key() -> None:CODE
LOWtests/test_module_client.py241def test_bedrock_module_api_key_overrides_cached_env_token_after_load() -> None:CODE
LOWtests/test_module_client.py256def test_bedrock_module_api_key_switches_cached_aws_client_to_bearer() -> None:CODE
LOWtests/test_module_client.py280def test_bedrock_api_type_uses_token_provider_without_mutating_module_api_key() -> None:CODE
LOWtests/test_module_client.py292def test_bedrock_module_api_key_overrides_cached_token_provider() -> None:CODE
LOWtests/test_transform.py141async def test_includes_unknown_keys(use_async: bool) -> None:CODE
LOWtests/test_transform.py159async def test_ignores_invalid_input(use_async: bool) -> None:CODE
LOWtests/test_transform.py251async def test_datetime_custom_format(use_async: bool) -> None:CODE
LOWtests/test_transform.py277async def test_pydantic_model_to_dictionary(use_async: bool) -> None:CODE
LOWtests/test_transform.py284async def test_pydantic_empty_model(use_async: bool) -> None:CODE
LOWtests/test_transform.py290async def test_pydantic_unknown_field(use_async: bool) -> None:CODE
LOWtests/test_transform.py298async def test_pydantic_mismatched_types(use_async: bool) -> None:CODE
LOWtests/test_transform.py310async def test_pydantic_mismatched_object_type(use_async: bool) -> None:CODE
LOWtests/test_transform.py326async def test_pydantic_nested_objects(use_async: bool) -> None:CODE
LOWtests/test_transform.py340async def test_pydantic_default_field(use_async: bool) -> None:CODE
LOWtests/test_transform.py374async def test_iterable_of_dictionaries(use_async: bool) -> None:CODE
LOWtests/test_response.py33def test_extract_response_type_direct_classes() -> None:CODE
LOWtests/test_response.py39def test_extract_response_type_direct_class_missing_type_arg() -> None:CODE
LOWtests/test_response.py47def test_extract_response_type_concrete_subclasses() -> None:CODE
LOWtests/test_response.py53def test_extract_response_type_binary_response() -> None:CODE
LOWtests/test_response.py61def test_response_parse_mismatched_basemodel(client: OpenAI) -> None:CODE
LOWtests/test_response.py79async def test_async_response_parse_mismatched_basemodel(async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_response.py96def test_response_parse_custom_stream(client: OpenAI) -> None:CODE
LOWtests/test_response.py111async def test_async_response_parse_custom_stream(async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_response.py130def test_response_parse_custom_model(client: OpenAI) -> None:CODE
LOWtests/test_response.py146async def test_async_response_parse_custom_model(async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_response.py161def test_response_basemodel_request_id(client: OpenAI) -> None:CODE
LOWtests/test_response.py185async def test_async_response_basemodel_request_id(client: OpenAI) -> None:CODE
LOWtests/test_response.py206def test_response_parse_annotated_type(client: OpenAI) -> None:CODE
LOWtests/test_response.py223async def test_async_response_parse_annotated_type(async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_response.py276async def test_async_response_parse_bool(client: AsyncOpenAI, content: str, expected: bool) -> None:CODE
LOWtests/test_response.py295def test_response_parse_expect_model_union_non_json_content(client: OpenAI) -> None:CODE
LOWtests/test_response.py312async def test_async_response_parse_expect_model_union_non_json_content(async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_websocket_connection_options.py5def test_submodule_alias_is_preserved() -> None:CODE
LOWtests/test_websocket_connection_options.py12def test_public_types_alias_is_preserved() -> None:CODE
LOWtests/test_websocket_connection_options.py16def test_beta_realtime_import_still_works_with_old_alias() -> None:CODE
LOWtests/test_auth.py59def test_workload_identity_exchange_payload_and_cache() -> None:CODE
LOWtests/test_auth.py120def test_workload_identity_exchange_error() -> None:CODE
LOWtests/test_auth.py166def test_azure_managed_identity_token_provider() -> None:CODE
LOWtests/test_auth.py178def test_gcp_id_token_provider() -> None:CODE
LOWtests/test_streaming.py85async def test_multiple_events_with_data(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_streaming.py109async def test_multiple_data_lines_with_empty_line(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_streaming.py131async def test_data_json_escaped_double_new_line(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_streaming.py166async def test_special_new_line_character(CODE
LOWtests/test_streaming.py197async def test_multi_byte_character_multiple_chunks(CODE
LOWtests/test_qs.py76def test_unknown_array_format() -> None:CODE
LOWtests/test_files.py13def test_pathlib_includes_file_name() -> None:CODE
1505 more matches not shown…
AI Structural Patterns272 hits · 246 pts
SeverityFileLineSnippetContext
LOWtests/lib/test_bedrock.py905CODE
LOWsrc/openai/_base_client.py2025CODE
LOWsrc/openai/_client.py125CODE
LOWsrc/openai/_client.py573CODE
LOWsrc/openai/_client.py721CODE
LOWsrc/openai/_client.py1180CODE
LOWsrc/openai/_models.py303CODE
LOWsrc/openai/_models.py374CODE
LOWsrc/openai/providers/bedrock.py308CODE
LOWsrc/openai/resources/files.py191CODE
LOWsrc/openai/resources/files.py545CODE
LOWsrc/openai/resources/completions.py52CODE
LOWsrc/openai/resources/completions.py210CODE
LOWsrc/openai/resources/completions.py368CODE
LOWsrc/openai/resources/completions.py526CODE
LOWsrc/openai/resources/completions.py619CODE
LOWsrc/openai/resources/completions.py777CODE
LOWsrc/openai/resources/completions.py935CODE
LOWsrc/openai/resources/completions.py1093CODE
LOWsrc/openai/resources/images.py50CODE
LOWsrc/openai/resources/images.py129CODE
LOWsrc/openai/resources/images.py259CODE
LOWsrc/openai/resources/images.py389CODE
LOWsrc/openai/resources/images.py519CODE
LOWsrc/openai/resources/images.py590CODE
LOWsrc/openai/resources/images.py716CODE
LOWsrc/openai/resources/images.py842CODE
LOWsrc/openai/resources/images.py968CODE
LOWsrc/openai/resources/images.py1055CODE
LOWsrc/openai/resources/images.py1134CODE
LOWsrc/openai/resources/images.py1264CODE
LOWsrc/openai/resources/images.py1394CODE
LOWsrc/openai/resources/images.py1524CODE
LOWsrc/openai/resources/images.py1595CODE
LOWsrc/openai/resources/images.py1721CODE
LOWsrc/openai/resources/images.py1847CODE
LOWsrc/openai/resources/images.py1973CODE
LOWsrc/openai/resources/videos.py69CODE
LOWsrc/openai/resources/videos.py137CODE
LOWsrc/openai/resources/videos.py648CODE
LOWsrc/openai/resources/videos.py716CODE
LOWsrc/openai/resources/beta/assistants.py58CODE
LOWsrc/openai/resources/beta/assistants.py227CODE
LOWsrc/openai/resources/beta/assistants.py408CODE
LOWsrc/openai/resources/beta/assistants.py537CODE
LOWsrc/openai/resources/beta/assistants.py706CODE
LOWsrc/openai/resources/beta/assistants.py887CODE
LOWsrc/openai/resources/beta/responses/responses.py106CODE
LOWsrc/openai/resources/beta/responses/responses.py487CODE
LOWsrc/openai/resources/beta/responses/responses.py868CODE
LOWsrc/openai/resources/beta/responses/responses.py1248CODE
LOWsrc/openai/resources/beta/responses/responses.py1449CODE
LOWsrc/openai/resources/beta/responses/responses.py1499CODE
LOWsrc/openai/resources/beta/responses/responses.py1549CODE
LOWsrc/openai/resources/beta/responses/responses.py1598CODE
LOWsrc/openai/resources/beta/responses/responses.py1731CODE
LOWsrc/openai/resources/beta/responses/responses.py1931CODE
LOWsrc/openai/resources/beta/responses/responses.py1988CODE
LOWsrc/openai/resources/beta/responses/responses.py2369CODE
LOWsrc/openai/resources/beta/responses/responses.py2750CODE
212 more matches not shown…
Cross-Language Confusion19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHtests/test_utils/test_json.py121 assert json_bytes == b'{"model":{"name":"Eve","email":null,"phone":null}}'CODE
HIGHtests/test_utils/test_json.py126 assert json_bytes == b'{"model":{"name":"Frank","email":"frank@example.com","phone":null}}'CODE
HIGHtests/lib/chat/test_completions.py44 '{"id": "chatcmpl-ABfvaueLEMLNYbT8YzpJxsmiQ6HSY", "object": "chat.completion", "created": 1727346142, "modelCODE
HIGHtests/lib/chat/test_completions.py115 '{"id": "chatcmpl-ABfvbtVnTu5DeC4EFnRYj8mtfOM99", "object": "chat.completion", "created": 1727346143, "modelCODE
HIGHtests/lib/chat/test_completions.py187 '{"id": "chatcmpl-ABfvcC8grKYsRkSoMp9CCAhbXAd0b", "object": "chat.completion", "created": 1727346144, "modelCODE
HIGHtests/lib/chat/test_completions.py263 '{"id": "chatcmpl-ABfvjIatz0zrZu50gRbMtlp0asZpz", "object": "chat.completion", "created": 1727346151, "modelCODE
HIGHtests/lib/chat/test_completions.py313 '{"id": "chatcmpl-ABfvp8qzboW92q8ONDF4DPHlI7ckC", "object": "chat.completion", "created": 1727346157, "modelCODE
HIGHtests/lib/chat/test_completions.py394 '{"id": "chatcmpl-ABfvqhz4uUUWsw8Ohw2Mp9B4sKKV8", "object": "chat.completion", "created": 1727346158, "modelCODE
HIGHtests/lib/chat/test_completions.py460 '{"id": "chatcmpl-ABfvtNiaTNUF6OymZUnEFc9lPq9p1", "object": "chat.completion", "created": 1727346161, "modelCODE
HIGHtests/lib/chat/test_completions.py546 '{"id": "chatcmpl-ABfvvX7eB1KsfeZj8VcF3z7G7SbaA", "object": "chat.completion", "created": 1727346163, "mCODE
HIGHtests/lib/chat/test_completions.py573 '{"id": "chatcmpl-ABfvwoKVWPQj2UPlAcAKM7s40GsRx", "object": "chat.completion", "created": 1727346164, "modelCODE
HIGHtests/lib/chat/test_completions.py624 '{"id": "chatcmpl-ABfvx6Z4dchiW2nya1N8KMsHFrQRE", "object": "chat.completion", "created": 1727346165, "modelCODE
HIGHtests/lib/chat/test_completions.py698 '{"id": "chatcmpl-ABfvyvfNWKcl7Ohqos4UFrmMs1v4C", "object": "chat.completion", "created": 1727346166, "modelCODE
HIGHtests/lib/chat/test_completions.py781 '{"id": "chatcmpl-ABfvzdvCI6RaIkiEFNjqGXCSYnlzf", "object": "chat.completion", "created": 1727346167, "modelCODE
HIGHtests/lib/chat/test_completions.py859 '{"id": "chatcmpl-ABrDYCa8W1w66eUxKDO8TQF1m6trT", "object": "chat.completion", "created": 1727389540, "modelCODE
HIGHtests/lib/chat/test_completions.py937 '{"id": "chatcmpl-ABrDQWOiw0PK5JOsxl1D9ooeQgznq", "object": "chat.completion", "created": 1727389532, "modelCODE
HIGHtests/lib/responses/test_responses.py36 '{"id": "resp_689a0b2545288193953c892439b42e2800b2e36c65a1fd4b", "object": "response", "created_at": 1754925CODE
HIGH…ta/chatkit/chat_session_chatkit_configuration_param.py42 When omitted, history is enabled by default with no limit on recent_threads (null).STRING
HIGH…ta/chatkit/chat_session_chatkit_configuration_param.py75 (null).STRING
Excessive Try-Catch Wrapping68 hits · 80 pts
SeverityFileLineSnippetContext
LOWREADME.md543 except Exception as e:CODE
LOWREADME.md579 except Exception as e:CODE
LOWexamples/image_stream.py52 except Exception as error:CODE
MEDIUMexamples/image_stream.py53 print(f"Error generating image: {error}")CODE
LOWscripts/utils/ruffen-docs.py42 except Exception as e:CODE
LOWsrc/openai/_send_queue.py52 except Exception:CODE
LOWsrc/openai/_send_queue.py69 except Exception:CODE
MEDIUMsrc/openai/_base_client.py2099def get_platform() -> Platform:CODE
MEDIUMsrc/openai/_base_client.py2165def get_python_runtime() -> str:CODE
MEDIUMsrc/openai/_base_client.py2172def get_python_version() -> str:CODE
MEDIUMsrc/openai/_base_client.py2179def get_architecture() -> Arch:CODE
LOWsrc/openai/_base_client.py2168 except Exception:CODE
LOWsrc/openai/_base_client.py2175 except Exception:CODE
LOWsrc/openai/_base_client.py2182 except Exception:CODE
LOWsrc/openai/_base_client.py424 except Exception:CODE
LOWsrc/openai/_base_client.py861 except Exception:CODE
LOWsrc/openai/_base_client.py1059 except Exception as err:CODE
LOWsrc/openai/_base_client.py1471 except Exception:CODE
LOWsrc/openai/_base_client.py1670 except Exception as err:CODE
LOWsrc/openai/_base_client.py2103 except Exception:CODE
LOWsrc/openai/_response.py247 except Exception as exc:CODE
LOWsrc/openai/_legacy_response.py314 except Exception as exc:CODE
LOWsrc/openai/_models.py622 except Exception:CODE
LOWsrc/openai/_models.py651 except Exception:CODE
LOWsrc/openai/_models.py696 except Exception:CODE
LOWsrc/openai/_models.py702 except Exception:CODE
LOWsrc/openai/_utils/_proxy.py51 except Exception:CODE
LOWsrc/openai/_utils/_utils.py410 except Exception:CODE
MEDIUMsrc/openai/_utils/_utils.py407def get_async_library() -> str:CODE
LOWsrc/openai/auth/_workload.py63 except Exception as e:CODE
LOWsrc/openai/auth/_workload.py123 except Exception as e:CODE
LOWsrc/openai/auth/_workload.py167 except Exception as e:CODE
MEDIUMsrc/openai/auth/_workload.py56def get_token() -> str:CODE
MEDIUMsrc/openai/auth/_workload.py94def get_token() -> str:CODE
MEDIUMsrc/openai/auth/_workload.py147def get_token() -> str:CODE
LOWsrc/openai/providers/bedrock.py92 except Exception as exc:CODE
LOWsrc/openai/providers/bedrock.py111 except Exception as exc:CODE
MEDIUMsrc/openai/providers/bedrock.py87def _resolve_token(self) -> str:CODE
MEDIUMsrc/openai/providers/bedrock.py104def _resolve_token_async(self) -> str:CODE
LOWsrc/openai/resources/beta/responses/responses.py4045 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4109 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4141 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4155 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4502 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4564 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4596 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4606 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py3996 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4060 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4092 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4106 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4453 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4515 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4547 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4557 except Exception:CODE
LOWsrc/openai/resources/realtime/realtime.py356 except Exception:CODE
LOWsrc/openai/resources/realtime/realtime.py419 except Exception:CODE
LOWsrc/openai/resources/realtime/realtime.py451 except Exception:CODE
LOWsrc/openai/resources/realtime/realtime.py465 except Exception:CODE
LOWsrc/openai/resources/realtime/realtime.py836 except Exception:CODE
8 more matches not shown…
Deep Nesting49 hits · 46 pts
SeverityFileLineSnippetContext
LOWtests/utils.py56CODE
LOWtests/lib/test_bedrock_auth_conformance.py117CODE
LOWtests/lib/test_audio.py19CODE
LOWtests/lib/test_audio.py54CODE
LOWexamples/image_stream.py11CODE
LOWexamples/responses/websocket.py267CODE
LOWexamples/realtime/realtime.py13CODE
LOWexamples/realtime/azure_realtime.py15CODE
LOWexamples/realtime/audio_util.py95CODE
LOWsrc/openai/_base_client.py498CODE
LOWsrc/openai/_streaming.py55CODE
LOWsrc/openai/_streaming.py165CODE
LOWsrc/openai/_streaming.py339CODE
LOWsrc/openai/_qs.py65CODE
LOWsrc/openai/_models.py588CODE
LOWsrc/openai/_models.py757CODE
LOWsrc/openai/_utils/_transform.py236CODE
LOWsrc/openai/_utils/_transform.py402CODE
LOWsrc/openai/types/responses/parsed_response.py119CODE
LOWsrc/openai/types/responses/response.py472CODE
LOWsrc/openai/resources/videos.py171CODE
LOWsrc/openai/resources/videos.py750CODE
LOWsrc/openai/resources/beta/responses/responses.py3992CODE
LOWsrc/openai/resources/beta/responses/responses.py4449CODE
LOWsrc/openai/resources/vector_stores/files.py360CODE
LOWsrc/openai/resources/vector_stores/files.py814CODE
LOWsrc/openai/resources/vector_stores/file_batches.py331CODE
LOWsrc/openai/resources/vector_stores/file_batches.py719CODE
LOWsrc/openai/resources/responses/responses.py3943CODE
LOWsrc/openai/resources/responses/responses.py4400CODE
LOWsrc/openai/resources/uploads/uploads.py414CODE
LOWsrc/openai/resources/realtime/realtime.py303CODE
LOWsrc/openai/resources/realtime/realtime.py783CODE
LOWsrc/openai/resources/audio/translations.py366CODE
LOWsrc/openai/resources/audio/transcriptions.py1002CODE
LOWsrc/openai/lib/_validators.py451CODE
LOWsrc/openai/lib/_validators.py640CODE
LOWsrc/openai/lib/_parsing/_responses.py53CODE
LOWsrc/openai/lib/_parsing/_completions.py86CODE
LOWsrc/openai/lib/streaming/_deltas.py6CODE
LOWsrc/openai/lib/streaming/_assistants.py980CODE
LOWsrc/openai/lib/streaming/_assistants.py255CODE
LOWsrc/openai/lib/streaming/_assistants.py687CODE
LOWsrc/openai/lib/streaming/chat/_completions.py360CODE
LOWsrc/openai/lib/streaming/chat/_completions.py493CODE
LOWsrc/openai/lib/streaming/responses/_responses.py247CODE
LOWsrc/openai/lib/streaming/responses/_responses.py325CODE
LOWsrc/openai/helpers/local_audio_player.py104CODE
LOWsrc/openai/helpers/local_audio_player.py119CODE
Slop Phrases7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMtests/lib/chat/test_completions_streaming.py73 content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, ISTRING
MEDIUMtests/lib/chat/test_completions_streaming.py88 content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I recommendSTRING
MEDIUMtests/lib/chat/test_completions_streaming.py1058 content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, ICODE
MEDIUMtests/lib/chat/test_completions.py62 content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, ISTRING
MEDIUMexamples/streaming.py44 # In Python 3.10+ you can also use the `await anext(response)` builtin insteadCOMMENT
MEDIUM…c/openai/types/evals/runs/output_item_list_response.py38 # To access properties that are not valid identifiers you can use `getattr`, e.g.COMMENT
MEDIUM…enai/types/evals/runs/output_item_retrieve_response.py38 # To access properties that are not valid identifiers you can use `getattr`, e.g.COMMENT
AI Slop Vocabulary4 hits · 6 pts
SeverityFileLineSnippetContext
LOWpyproject.toml193# it's fine to just use Pyright.COMMENT
LOWsrc/openai/_response.py263 # If the API responds with content that isn't JSON then we just returnCOMMENT
LOWsrc/openai/_legacy_response.py330 # If the API responds with content that isn't JSON then we just returnCOMMENT
LOWsrc/openai/_models.py491 # If the type cannot be reconstructed, just return the validated listCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/openai/_utils/_path.py79Interpolate {name} placeholders in `template` from keyword arguments. Args: template: The template string cSTRING
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWexamples/realtime/push_to_talk_app.py1#!/usr/bin/env uv runCOMMENT
LOWsrc/openai/_types.py101# method that uses `ResponseT` which would lead to an unacceptableCOMMENT
LOWsrc/openai/_client.py141 # Configure a custom httpx client.COMMENT
LOWsrc/openai/_models.py621 return validate_type(type_=cast("type[object]", original_type or type_), value=value)COMMENT
Fake / Example Data3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_utils/test_json.py98 address = Address(street="123 Main St")CODE
LOWtests/test_utils/test_json.py102 assert json_bytes == b'{"user":{"name":"Diana","address":{"street":"123 Main St"}}}'CODE
LOWtests/lib/test_azure.py919 json_data={"model": "placeholder"},CODE
Self-Referential Comments2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUMsrc/openai/_base_client.py950 """This method is used as a callback for mutating the `Request` objectSTRING
MEDIUMsrc/openai/_base_client.py1557 """This method is used as a callback for mutating the `Request` objectSTRING
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_client.py82 def handle_request(CODE