Examples and guides for using the OpenAI API
This report presents the forensic synthetic code analysis of openai/openai-cookbook, a Jupyter Notebook project with 74,676 GitHub stars. SynthScan v2.0 examined 129,969 lines of code across 712 source files, recording 594 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 7.2 places this repository in the Low 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 594 distinct pattern matches across 21 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 |
|---|---|---|---|---|
| LOW | examples/api_request_parallel_processor.py | 110 | async def process_api_requests_from_file( | CODE |
| LOW | examples/api_request_parallel_processor.py | 387 | def num_tokens_consumed_from_request( | CODE |
| LOW | examples/api_request_parallel_processor.py | 446 | def task_id_generator_function(): | CODE |
| LOW | examples/evals/imagegen_evals/vision_harness/graders.py | 27 | def build_generation_judge_content(case: TestCase, output_image: Path) -> list[dict]: | CODE |
| LOW | examples/evals/imagegen_evals/vision_harness/graders.py | 40 | def build_editing_judge_content(case: TestCase, output_image: Path) -> list[dict]: | CODE |
| LOW | …evals/realtime_evals/run_harness/run_realtime_evals.py | 161 | def build_failed_simulation_result( | CODE |
| LOW | …evals/realtime_evals/run_harness/run_realtime_evals.py | 209 | def build_tool_output_by_call_id( | CODE |
| LOW | …evals/realtime_evals/run_harness/run_realtime_evals.py | 221 | def transcript_lines_for_assistant_turn( | CODE |
| LOW | …evals/realtime_evals/run_harness/run_realtime_evals.py | 242 | def build_simulator_prompt_text( | CODE |
| LOW | …evals/realtime_evals/run_harness/run_realtime_evals.py | 361 | def apply_turn_level_tool_grades( | CODE |
| LOW | …ls/realtime_evals/tests/test_dynamic_result_columns.py | 28 | def test_crawl_result_csv_row_omits_tool_arg_columns_when_disabled() -> None: | CODE |
| LOW | …ls/realtime_evals/tests/test_dynamic_result_columns.py | 64 | def test_walk_result_csv_row_omits_all_tool_columns_when_disabled() -> None: | CODE |
| LOW | …ls/realtime_evals/tests/test_dynamic_result_columns.py | 94 | def test_run_result_csv_row_uses_enabled_grader_union() -> None: | CODE |
| LOW | …ls/realtime_evals/tests/test_dynamic_result_columns.py | 135 | def test_apply_turn_level_tool_grades_keeps_results_row_local() -> None: | CODE |
| LOW | …ls/realtime_evals/tests/test_dynamic_result_columns.py | 178 | def test_trace_grade_row_indices_targets_last_row_only() -> None: | CODE |
| LOW | …ls/realtime_evals/tests/test_dynamic_result_columns.py | 183 | def test_walk_parse_args_does_not_expose_max_output_tokens() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 74 | def test_check_tool_call_names_correct_matches_expected_set() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 84 | def test_check_tool_args_correct_normalizes_addresses() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 106 | def test_check_tool_args_correct_handles_nested_json_arguments() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 142 | def test_compute_tool_call_grade_uses_deterministic_graders() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 154 | def test_instruction_following_grader_uses_instruction_prompt_and_schema() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 176 | def test_audio_text_mismatch_grader_uses_specialized_prompt() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 193 | def test_stt_then_text_grader_uses_transcript_as_grounding() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 211 | def test_transcribe_model_response_audio_writes_valid_wav() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 229 | def test_transcribe_model_response_audio_rejects_missing_audio() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 242 | def test_audio_text_mismatch_from_model_response_transcribes_then_grades() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 261 | def test_stt_then_text_from_model_response_transcribes_then_grades() -> None: | CODE |
| LOW | examples/evals/realtime_evals/tests/test_graders.py | 281 | def test_run_default_grader_dispatches_named_graders() -> None: | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_results_viewer.py | 26 | def test_coerce_float_treats_blank_and_non_numeric_strings_as_missing() -> None: | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_results_viewer.py | 33 | def test_clean_path_value_resolves_paths_within_run_directory( | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_results_viewer.py | 44 | def test_clean_path_value_rejects_absolute_and_escaping_paths( | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_results_viewer.py | 54 | def test_input_audio_path_for_row_rejects_example_ids_that_escape_run_directory( | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_results_viewer.py | 68 | def test_run_viewer_table_key_uses_full_relative_path() -> None: | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_results_viewer.py | 75 | def test_build_run_viewer_table_marks_active_row_with_checkbox() -> None: | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_results_viewer.py | 96 | def test_display_run_label_uses_leaf_name() -> None: | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_results_viewer.py | 100 | def test_build_summary_table_uses_short_run_label_for_display() -> None: | CODE |
| LOW | …amples/evals/realtime_evals/tests/test_failure_rows.py | 17 | def test_crawl_failure_row_serializes_error_info() -> None: | CODE |
| LOW | …amples/evals/realtime_evals/tests/test_failure_rows.py | 46 | def test_walk_failure_row_handles_missing_audio_path() -> None: | CODE |
| LOW | …amples/evals/realtime_evals/tests/test_failure_rows.py | 69 | def test_run_failure_row_uses_turn_zero() -> None: | CODE |
| LOW | …altime_evals/tests/test_eval_run_type_compatibility.py | 30 | def test_run_eval_run_summary_coerces_types_and_feeds_results_viewer() -> None: | CODE |
| LOW | …altime_evals/tests/test_eval_run_type_compatibility.py | 98 | def test_walk_eval_result_csv_row_uses_repo_absolute_paths_in_results_viewer( | CODE |
| LOW | …altime_evals/tests/test_eval_run_type_compatibility.py | 152 | def test_run_turn_result_csv_row_is_compatible_with_run_viewer_helpers( | CODE |
| LOW | …/evals/realtime_evals/tests/test_results_viewer_app.py | 14 | def test_harness_results_roots_include_bootstrap_eval_results( | CODE |
| LOW | …/evals/realtime_evals/tests/test_results_viewer_app.py | 53 | def test_discover_result_directories_uses_root_relative_labels( | CODE |
| LOW | …/evals/realtime_evals/tests/test_results_viewer_app.py | 77 | def test_row_text_value_returns_first_non_empty_candidate() -> None: | CODE |
| LOW | …/evals/realtime_evals/tests/test_results_viewer_app.py | 91 | def test_resolve_active_row_index_prefers_navigation_state_until_selection_changes() -> None: | CODE |
| LOW | …/evals/realtime_evals/tests/test_results_viewer_app.py | 114 | def test_run_viewer_table_widget_key_changes_when_selection_is_reset() -> None: | CODE |
| LOW | …/evals/realtime_evals/tests/test_results_viewer_app.py | 130 | def test_resolve_run_viewer_table_selected_index_prefers_latest_checked_row() -> None: | CODE |
| LOW | …/evals/realtime_evals/tests/test_results_viewer_app.py | 153 | def test_run_viewer_table_matches_active_row_requires_single_checked_row() -> None: | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_plotting_utils.py | 14 | def test_build_realtime_eval_plots_writes_expected_files(tmp_path: Path) -> None: | CODE |
| LOW | …ples/evals/realtime_evals/tests/test_plotting_utils.py | 71 | def test_plot_eval_results_cli_infers_labels(tmp_path: Path) -> None: | CODE |
| LOW | …ls/realtime_evals/tests/test_realtime_harness_utils.py | 62 | def test_collect_realtime_response_times_out() -> None: | CODE |
| LOW | …ls/realtime_evals/tests/test_realtime_harness_utils.py | 80 | def test_collect_realtime_response_raises_on_error_event() -> None: | CODE |
| LOW | …ls/realtime_evals/tests/test_realtime_harness_utils.py | 106 | def test_collect_realtime_response_requires_completed_status() -> None: | CODE |
| LOW | …ls/realtime_evals/tests/test_realtime_harness_utils.py | 133 | def test_collect_realtime_response_returns_completed_response() -> None: | CODE |
| LOW | …/evals/realtime_evals/tests/test_validation_scripts.py | 29 | def test_validate_input_accepts_valid_run_bundle(tmp_path: Path) -> None: | CODE |
| LOW | …/evals/realtime_evals/tests/test_validation_scripts.py | 70 | def test_validate_input_rejects_walk_audio_with_wrong_format(tmp_path: Path) -> None: | CODE |
| LOW | …/evals/realtime_evals/tests/test_validation_scripts.py | 91 | def test_validate_output_accepts_valid_run_output(tmp_path: Path) -> None: | CODE |
| LOW | …/evals/realtime_evals/tests/test_validation_scripts.py | 155 | def test_validate_output_rejects_missing_run_grade_mean(tmp_path: Path) -> None: | CODE |
| LOW | examples/evals/realtime_evals/shared/plotting_utils.py | 64 | def build_realtime_eval_plots( | CODE |
| 127 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/codex/secure_quality_gitlab.md | 239 | # --------------------------- | COMMENT |
| MEDIUM | examples/codex/secure_quality_gitlab.md | 241 | # --------------------------- | COMMENT |
| MEDIUM | examples/codex/secure_quality_gitlab.md | 413 | # --------------------------- | COMMENT |
| MEDIUM | examples/codex/secure_quality_gitlab.md | 415 | # --------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 1 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 3 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 12 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 14 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 21 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 23 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 28 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 30 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 239 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 241 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 10 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 12 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 20 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 22 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 38 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 40 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 54 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 72 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 74 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 32 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 34 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/temporal_agents_with_knowledge_graphs/db_interface.py | 208 | # ====================== | COMMENT |
| MEDIUM | …/temporal_agents_with_knowledge_graphs/db_interface.py | 210 | # ====================== | COMMENT |
| MEDIUM | …/temporal_agents_with_knowledge_graphs/db_interface.py | 278 | # ===================== | COMMENT |
| MEDIUM | …/temporal_agents_with_knowledge_graphs/db_interface.py | 280 | # ===================== | COMMENT |
| MEDIUM | …/temporal_agents_with_knowledge_graphs/db_interface.py | 356 | # ==================== | COMMENT |
| MEDIUM | …/temporal_agents_with_knowledge_graphs/db_interface.py | 358 | # ==================== | COMMENT |
| MEDIUM⚡ | …rtners/agentic_governance_guide/promptfoo/redteam.yaml | 2 | # =================================================================== | COMMENT |
| MEDIUM⚡ | …rtners/agentic_governance_guide/promptfoo/redteam.yaml | 4 | # =================================================================== | COMMENT |
| MEDIUM⚡ | …rtners/agentic_governance_guide/promptfoo/redteam.yaml | 12 | # =================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | articles/gpt-oss/run-locally-lmstudio.md | 120 | except Exception as exc: | CODE |
| LOW | …als/realtime_evals/crawl_harness/run_realtime_evals.py | 442 | except Exception as exc: | CODE |
| LOW | …evals/realtime_evals/run_harness/run_realtime_evals.py | 880 | except Exception as exc: | CODE |
| LOW | …vals/realtime_evals/walk_harness/run_realtime_evals.py | 505 | except Exception as exc: | CODE |
| LOW | examples/evals/realtime_evals/results_viewer/app.py | 350 | except Exception as exc: | CODE |
| LOW | …ager/runtime/trace_capture/agents_sdk_trace_capture.py | 27 | except Exception: | CODE |
| LOW | …ager/runtime/trace_capture/agents_sdk_trace_capture.py | 108 | except Exception: | CODE |
| LOW | …ager/runtime/trace_capture/agents_sdk_trace_capture.py | 117 | except Exception: | CODE |
| LOW | …loyment_manager/runtime/trace_capture/sitecustomize.py | 5 | except Exception: | CODE |
| LOW | examples/agents_sdk/sandboxed-code-migration/evals.py | 138 | except Exception as exc: | CODE |
| LOW | …dk/sandboxed-code-migration/src/run_migration_agent.py | 171 | except Exception as exc: | CODE |
| LOW | …dk/sandboxed-code-migration/src/run_migration_agent.py | 198 | except Exception as exc: | CODE |
| LOW | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 185 | except Exception as e: | CODE |
| LOW | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 192 | except Exception as e: | CODE |
| LOW | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 262 | except Exception as e: | CODE |
| LOW⚡ | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 69 | except Exception: | CODE |
| LOW⚡ | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 177 | except Exception as e: | CODE |
| LOW⚡ | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 189 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 145 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 226 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 234 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 261 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 309 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 357 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 389 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 429 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 463 | except Exception as e: | CODE |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 480 | except Exception as e: | CODE |
| LOW | examples/fine-tuned_qa/answers_with_ft.py | 97 | except Exception as e: | CODE |
| LOW⚡ | …opilot-with-agent-sdk-and-databricks-mcp/api_server.py | 118 | except Exception as log_exc: | CODE |
| LOW⚡ | …opilot-with-agent-sdk-and-databricks-mcp/api_server.py | 127 | except Exception: | CODE |
| LOW⚡ | …opilot-with-agent-sdk-and-databricks-mcp/api_server.py | 133 | except Exception: | CODE |
| LOW | …/resources/object_oriented_agents/utils/openai_util.py | 34 | except Exception as e: | CODE |
| LOW | …ject_oriented_agents/services/openai_language_model.py | 49 | except Exception as e: | CODE |
| LOW | …_approach/resources/registry/tools/file_access_tool.py | 67 | except Exception as e: | CODE |
| LOW⚡ | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 15 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 21 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 27 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 36 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 41 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 46 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 51 | except Exception: # pragma: no cover | CODE |
| LOW | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 374 | except Exception: | CODE |
| LOW | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 1100 | except Exception: | CODE |
| LOW | …artners/temporal_agents_with_knowledge_graphs/utils.py | 32 | except Exception: | CODE |
| MEDIUM | …s/partners/agentic_governance_guide/tune_guardrails.py | 102 | print(f"Error: Config file not found: {args.config}", file=sys.stderr) | STRING |
| MEDIUM | …s/partners/agentic_governance_guide/tune_guardrails.py | 106 | print(f"Error: Dataset file not found: {args.dataset}", file=sys.stderr) | STRING |
| LOW | …agentic_governance_guide/promptfoo/promptfoo_target.py | 200 | except Exception as e: | CODE |
| MEDIUM | …agentic_governance_guide/promptfoo/promptfoo_target.py | 192 | def _run(): | CODE |
| LOW | …ch_api/how_to_build_a_deep_research_mcp_server/main.py | 202 | except Exception as e: | CODE |
| LOW | …s/gpt-5/prompt-optimization-cookbook/run_FailSafeQA.py | 365 | except Exception as e: # noqa: BLE001 | STRING |
| LOW | …s/gpt-5/prompt-optimization-cookbook/run_FailSafeQA.py | 382 | except Exception as e: # noqa: BLE001 | STRING |
| LOW | …s/gpt-5/prompt-optimization-cookbook/run_FailSafeQA.py | 428 | except Exception as e: # noqa: BLE001 | STRING |
| LOW | …-optimization-cookbook/results_topk_baseline/run_16.py | 27 | except Exception: | CODE |
| LOW | …-optimization-cookbook/results_topk_baseline/run_22.py | 36 | except Exception: | CODE |
| LOW | …-optimization-cookbook/results_topk_baseline/run_26.py | 44 | except Exception: | CODE |
| LOW | …-optimization-cookbook/results_topk_baseline/run_03.py | 42 | except Exception: | CODE |
| LOW | …-optimization-cookbook/results_topk_baseline/run_27.py | 36 | except Exception: | CODE |
| LOW | …-optimization-cookbook/results_topk_baseline/run_13.py | 30 | except Exception: | CODE |
| LOW | …-optimization-cookbook/results_topk_baseline/run_23.py | 40 | except Exception: | CODE |
| 40 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/evals/imagegen_evals/vision_harness/io.py | 1 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 1 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 2 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 2 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 2 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 2 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 2 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 9 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 10 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 10 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 11 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 12 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 13 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 13 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 13 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 13 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 13 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 13 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 13 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 13 | CODE | |
| LOW | examples/evals/imagegen_evals/vision_harness/graders.py | 1 | CODE | |
| LOW | examples/evals/imagegen_evals/vision_harness/types.py | 1 | CODE | |
| LOW | examples/evals/imagegen_evals/vision_harness/runners.py | 1 | CODE | |
| LOW | examples/evals/imagegen_evals/vision_harness/storage.py | 1 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/evaluate.py | 1 | CODE | |
| LOW | examples/evals/imagegen_evals/vision_harness/sweeps.py | 1 | CODE | |
| LOW | examples/evals/imagegen_evals/shared/rendering.py | 1 | CODE | |
| LOW | examples/evals/imagegen_evals/shared/rendering.py | 5 | CODE | |
| LOW | examples/evals/imagegen_evals/shared/reporting.py | 1 | CODE | |
| LOW | …/realtime_evals/shared/scripts/validate_eval_output.py | 1 | CODE | |
| LOW | …s/realtime_evals/shared/scripts/validate_eval_input.py | 1 | CODE | |
| LOW | examples/evals/realtime_evals/results_viewer/config.py | 1 | CODE | |
| LOW | examples/evals/realtime_evals/results_viewer/ui.py | 1 | CODE | |
| LOW | examples/evals/realtime_evals/results_viewer/app.py | 1 | CODE | |
| LOW | examples/vector_databases/redis/nbutils.py | 4 | CODE | |
| LOW | examples/agents_sdk/deployment_manager/app/store.py | 1 | CODE | |
| LOW | examples/agents_sdk/deployment_manager/app/runner.py | 1 | CODE | |
| LOW | examples/agents_sdk/deployment_manager/app/timeline.py | 1 | CODE | |
| LOW | examples/agents_sdk/deployment_manager/app/models.py | 1 | CODE | |
| LOW | …agents_sdk/deployment_manager/app/project_inspector.py | 1 | CODE | |
| LOW | …agents_sdk/deployment_manager/app/dockerfile_writer.py | 1 | CODE | |
| LOW | examples/agents_sdk/deployment_manager/app/main.py | 1 | CODE | |
| LOW | …mples/agents_sdk/deployment_manager/app/trace_store.py | 1 | CODE | |
| LOW | …ager/runtime/trace_capture/agents_sdk_trace_capture.py | 1 | CODE | |
| LOW | …agents_sdk/deployment_manager/scripts/start_manager.py | 1 | CODE | |
| LOW | …/agents_sdk/deployment_manager/scripts/local_deploy.py | 2 | CODE | |
| LOW | examples/agents_sdk/sandboxed-code-migration/evals.py | 1 | CODE | |
| LOW | …es/case_summary_service/case_summary_service/client.py | 1 | CODE | |
| LOW | …/case_summary_service/case_summary_service/__init__.py | 1 | CODE | |
| LOW | …case_summary_service/case_summary_service/summaries.py | 1 | CODE | |
| LOW | …_fixtures/case_summary_service/tests/test_summaries.py | 1 | CODE | |
| LOW | …epo_fixtures/case_summary_service/tests/test_client.py | 1 | CODE | |
| LOW | …/support_reply_service/customer_support_bot/replies.py | 1 | CODE | |
| LOW | …s/support_reply_service/customer_support_bot/client.py | 1 | CODE | |
| LOW | …support_reply_service/customer_support_bot/__init__.py | 1 | CODE | |
| LOW | …o_fixtures/support_reply_service/tests/test_replies.py | 1 | CODE | |
| LOW | …po_fixtures/support_reply_service/tests/test_client.py | 1 | CODE | |
| LOW | …/agents_sdk/sandboxed-code-migration/tests/conftest.py | 1 | CODE | |
| LOW | …ndboxed-code-migration/tests/test_migration_fixture.py | 1 | CODE | |
| LOW | …dk/sandboxed-code-migration/src/run_migration_agent.py | 1 | CODE | |
| 32 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/evals/imagegen_evals/README.md | 20 | export OPENAI_API_KEY="your_api_key" | CODE |
| HIGH | examples/evals/realtime_evals/README.md | 19 | export OPENAI_API_KEY="your_api_key" | CODE |
| HIGH | …strap-realtime-eval/scripts/bootstrap_realtime_eval.py | 663 | export OPENAI_API_KEY="your_api_key" | CODE |
| HIGH⚡ | examples/data/oai_docs/curl-setup.txt | 26 | 3. **Add environment variable**: In the editor, add the line below, replacing `your-api-key-here` with your actual API k | CODE |
| HIGH⚡ | examples/data/oai_docs/curl-setup.txt | 29 | export OPENAI_API_KEY='your-api-key-here' | CODE |
| HIGH | examples/data/oai_docs/curl-setup.txt | 44 | 2. **Set environment variable in the current session**: To set the environment variable in the current session, use the | CODE |
| HIGH | examples/data/oai_docs/curl-setup.txt | 47 | setx OPENAI_API_KEY "your-api-key-here" | CODE |
| HIGH | examples/data/oai_docs/python-setup.txt | 72 | 3. **Add Environment Variable**: In the editor, add the line below, replacing `your-api-key-here` with your actual API k | CODE |
| HIGH | examples/data/oai_docs/python-setup.txt | 75 | export OPENAI_API_KEY='your-api-key-here' | CODE |
| HIGH | examples/data/oai_docs/python-setup.txt | 94 | 2. **Set environment variable in the current session**: To set the environment variable in the current session, use the | CODE |
| HIGH | examples/data/oai_docs/python-setup.txt | 97 | setx OPENAI_API_KEY "your-api-key-here" | CODE |
| HIGH | examples/data/oai_docs/node-setup.txt | 37 | 3. **Add Environment Variable**: In the editor, ensure you have set your API key as shown below, replacing `your-api-key | CODE |
| HIGH | examples/data/oai_docs/node-setup.txt | 40 | export OPENAI_API_KEY='your-api-key-here' | CODE |
| HIGH | examples/data/oai_docs/node-setup.txt | 55 | 2. **Set environment variable in the current session**: To set the environment variable in the current session, use the | CODE |
| HIGH | examples/data/oai_docs/node-setup.txt | 58 | setx OPENAI_API_KEY "your-api-key-here" | CODE |
| HIGH | …tions/one_way_translation_using_realtime_api/README.md | 24 | REACT_APP_OPENAI_API_KEY=<your_api_key> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | articles/how_to_work_with_large_language_models.md | 94 | ### Demonstration prompt example (few-shot learning) | COMMENT |
| MEDIUM | articles/openai-harmony.md | 194 | The `final` channel will contain the answer to your user’s request. Check out the [reasoning section](#reasoning) for mo | CODE |
| MEDIUM | articles/techniques_to_improve_reliability.md | 305 | ## Extensions to chain-of-thought prompting | COMMENT |
| MEDIUM | articles/techniques_to_improve_reliability.md | 534 | #### Fine-tuned chain of thought prompting / Self-taught reasoner | COMMENT |
| MEDIUM | articles/gpt-oss/handle-raw-cot.md | 1 | # How to handle the raw chain of thought in gpt-oss | COMMENT |
| MEDIUM | examples/vector_databases/cassandra_astradb/README.md | 1 | # RAG with Astra DB and Cassandra | COMMENT |
| MEDIUM | examples/vector_databases/elasticsearch/README.md | 25 | ### [Retrieval augmented generation](https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elast | COMMENT |
| MEDIUM | examples/codex/code_modernization.md | 209 | # Test scaffolding | COMMENT |
| MEDIUM | …les/agents_sdk/migrate-from-claude-agent-sdk/README.md | 523 | ### Step 5: Choose multi-agent ownership | COMMENT |
| MEDIUM | …agentic_governance_guide/promptfoo/promptfoo_target.py | 98 | # ---------- Centralized guardrails config ---------- | COMMENT |
| MEDIUM | …ntic_governance_guide/guardrail_tuner/feedback_loop.py | 257 | # Load config and identify tunable guardrails | COMMENT |
| MEDIUM | …ntic_governance_guide/guardrail_tuner/feedback_loop.py | 278 | # Initialize states for all tunable guardrails | COMMENT |
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| MEDIUM | examples/data/oai_docs/fine-tuning.txt | 775 | ### When should I use fine-tuning vs embeddings / retrieval augmented generation? | COMMENT |
| MEDIUM | examples/data/oai_docs/optimizing-llm-accuracy.txt | 170 | ### Retrieval-augmented generation (RAG) | COMMENT |
| MEDIUM | examples/data/oai_docs/optimizing-llm-accuracy.txt | 259 | #### RAG + Fine-tuning | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/codex/secure_quality_gitlab.md | 177 | ### Step 1: Generating Recommendations | COMMENT |
| LOW | examples/codex/secure_quality_gitlab.md | 365 | ### Step 2: Remediating Security Issues Based on Recommendations | COMMENT |
| LOW | …les/agents_sdk/migrate-from-claude-agent-sdk/README.md | 396 | ### Step 1: Define the first OpenAI agent | COMMENT |
| LOW | …les/agents_sdk/migrate-from-claude-agent-sdk/README.md | 405 | ### Step 2: Port custom tools | COMMENT |
| LOW | …les/agents_sdk/migrate-from-claude-agent-sdk/README.md | 418 | ### Step 3: Map built-in tools by execution boundary | COMMENT |
| LOW | …les/agents_sdk/migrate-from-claude-agent-sdk/README.md | 435 | ### Step 4: Move validation to the right guardrail boundary | COMMENT |
| LOW | …les/agents_sdk/migrate-from-claude-agent-sdk/README.md | 523 | ### Step 5: Choose multi-agent ownership | COMMENT |
| LOW | …les/agents_sdk/migrate-from-claude-agent-sdk/README.md | 586 | ### Step 6: Choose one conversation-state strategy | COMMENT |
| LOW | …les/agents_sdk/migrate-from-claude-agent-sdk/README.md | 597 | ### Step 7: Add approvals for side effects with human review | COMMENT |
| LOW | examples/data/oai_docs/curl-setup.txt | 4 | ## Step 1: Set up curl | COMMENT |
| LOW⚡ | examples/data/oai_docs/curl-setup.txt | 17 | ## Step 2: Set up your API key | COMMENT |
| LOW | examples/data/oai_docs/curl-setup.txt | 67 | ## Step 3: Sending your first API request | COMMENT |
| LOW | examples/data/oai_docs/function-calling.txt | 85 | # Step 1: send the conversation and available functions to the model | COMMENT |
| LOW⚡ | examples/data/oai_docs/function-calling.txt | 115 | # Step 2: check if the model wanted to call a function | COMMENT |
| LOW⚡ | examples/data/oai_docs/function-calling.txt | 117 | # Step 3: call the function | COMMENT |
| LOW⚡ | examples/data/oai_docs/function-calling.txt | 123 | # Step 4: send the info for each function call and function response to the model | COMMENT |
| LOW | examples/data/oai_docs/function-calling.txt | 165 | // Step 1: send the conversation and available functions to the model | COMMENT |
| LOW | examples/data/oai_docs/function-calling.txt | 197 | // Step 2: check if the model wanted to call a function | COMMENT |
| LOW | examples/data/oai_docs/function-calling.txt | 200 | // Step 3: call the function | COMMENT |
| LOW | examples/data/oai_docs/tool-function-calling.txt | 17 | ### Step 1: Define functions | COMMENT |
| LOW | examples/data/oai_docs/tool-function-calling.txt | 125 | ### Step 2: Create a Thread and add Messages | COMMENT |
| LOW | examples/data/oai_docs/tool-function-calling.txt | 150 | ### Step 3: Initiate a Run | COMMENT |
| LOW | examples/data/oai_docs/python-setup.txt | 4 | ## Step 1: Setting up Python | COMMENT |
| LOW | examples/data/oai_docs/python-setup.txt | 57 | ## Step 2: Set up your API key | COMMENT |
| LOW | examples/data/oai_docs/python-setup.txt | 156 | ## Step 3: Sending your first API request | COMMENT |
| LOW | examples/data/oai_docs/tool-file-search.txt | 12 | ### Step 1: Create a new Assistant with File Search Enabled | COMMENT |
| LOW | examples/data/oai_docs/tool-file-search.txt | 60 | ### Step 2: Upload files and add them to a Vector Store | COMMENT |
| LOW | examples/data/oai_docs/tool-file-search.txt | 103 | ### Step 3: Update the assistant to to use the new Vector Store | COMMENT |
| LOW | examples/data/oai_docs/tool-file-search.txt | 124 | ### Step 4: Create a thread | COMMENT |
| LOW | examples/data/oai_docs/tool-file-search.txt | 181 | ### Step 5: Create a run and check the output | COMMENT |
| LOW | examples/data/oai_docs/node-setup.txt | 4 | ## Step 1: Setting up Node | COMMENT |
| LOW | examples/data/oai_docs/node-setup.txt | 26 | ## Step 2: Set up your API key | COMMENT |
| LOW | examples/data/oai_docs/node-setup.txt | 77 | ## Step 3: Sending your first API request | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/api_request_parallel_processor.py | 110 | CODE | |
| LOW | examples/api_request_parallel_processor.py | 387 | CODE | |
| LOW | …amples/evals/imagegen_evals/vision_harness/evaluate.py | 17 | CODE | |
| LOW | …evals/realtime_evals/run_harness/run_realtime_evals.py | 459 | CODE | |
| LOW | …evals/realtime_evals/run_harness/run_realtime_evals.py | 850 | CODE | |
| LOW | …/evals/realtime_evals/shared/realtime_harness_utils.py | 124 | CODE | |
| LOW | examples/evals/realtime_evals/shared/graders.py | 273 | CODE | |
| LOW | …strap-realtime-eval/scripts/bootstrap_realtime_eval.py | 242 | CODE | |
| LOW | examples/evals/realtime_evals/results_viewer/app.py | 425 | CODE | |
| LOW | examples/evals/realtime_evals/results_viewer/app.py | 1157 | CODE | |
| LOW | examples/agents_sdk/deployment_manager/app/timeline.py | 84 | CODE | |
| LOW | examples/agents_sdk/deployment_manager/app/timeline.py | 186 | CODE | |
| LOW | examples/agents_sdk/deployment_manager/app/timeline.py | 478 | CODE | |
| LOW | …mples/agents_sdk/deployment_manager/app/trace_store.py | 367 | CODE | |
| LOW | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 52 | CODE | |
| LOW | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 159 | CODE | |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 265 | CODE | |
| LOW | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 313 | CODE | |
| LOW | …opilot-with-agent-sdk-and-databricks-mcp/api_server.py | 92 | CODE | |
| LOW | examples/partners/model_selection_guide/tools.py | 179 | CODE | |
| LOW | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 874 | CODE | |
| LOW | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 2793 | CODE | |
| LOW | …ntic_governance_guide/guardrail_tuner/feedback_loop.py | 159 | CODE | |
| LOW | …ntic_governance_guide/guardrail_tuner/feedback_loop.py | 191 | CODE | |
| LOW | …ntic_governance_guide/guardrail_tuner/feedback_loop.py | 246 | CODE | |
| LOW | …ch_api/how_to_build_a_deep_research_mcp_server/main.py | 28 | CODE | |
| LOW | …ch_api/how_to_build_a_deep_research_mcp_server/main.py | 40 | CODE | |
| LOW | examples/gpt-5/apply_patch.py | 24 | CODE | |
| LOW | examples/gpt-5/apply_patch.py | 252 | CODE | |
| LOW | examples/gpt-5/apply_patch.py | 390 | CODE | |
| LOW | examples/gpt-5/apply_patch.py | 423 | CODE | |
| LOW | examples/gpt-5/apply_patch.py | 141 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_06.py | 4 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_26.py | 3 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_03.py | 3 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_27.py | 6 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_13.py | 3 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_07.py | 5 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_23.py | 3 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_09.py | 3 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_29.py | 3 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_24.py | 3 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_14.py | 7 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_20.py | 3 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_05.py | 3 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_15.py | 6 | CODE | |
| LOW | …pt-5/prompt-optimization-cookbook/scripts/llm_judge.py | 59 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | examples/data/oai_docs/tool-code-interpreter.txt | 277 | run_steps = client.beta.threads.runs.steps.list( | CODE |
| CRITICAL | examples/data/oai_docs/tool-code-interpreter.txt | 283 | const runSteps = await openai.beta.threads.runs.steps.list( | CODE |
| CRITICAL | …a/oai_docs/function-calling-run-example--streaming.txt | 99 | const stream = this.client.beta.threads.runs.submitToolOutputsStream( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | registry.yaml | 3 | # This file is used to generate cookbook.openai.com. It specifies which paths we | COMMENT |
| MEDIUM | …roach/resources/object_oriented_agents/utils/logger.py | 14 | # Create a console handler | COMMENT |
| MEDIUM | …ch/resources/registry/agents/python_code_exec_agent.py | 16 | # Create a LanguageModelInterface instance using the OpenAILanguageModel | COMMENT |
| MEDIUM | …ch/resources/registry/agents/python_code_exec_agent.py | 58 | # Create the Python execution tool | STRING |
| MEDIUM | …pproach/resources/registry/agents/file_access_agent.py | 16 | # Create a LanguageModelInterface instance using the OpenAILanguageModel | COMMENT |
| MEDIUM | …ch_api/how_to_build_a_deep_research_mcp_server/main.py | 93 | # Create a snippet from content | STRING |
| MEDIUM | …ch_api/how_to_build_a_deep_research_mcp_server/main.py | 189 | # Create the MCP server | COMMENT |
| MEDIUM | examples/chatgpt/rag-quickstart/azure/function_app.py | 86 | # Create a vectorized query | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …evals/realtime_evals/run_harness/run_realtime_evals.py | 578 | # Disable turn detection (VAD) for both connections so this harness controls turn | COMMENT |
| MEDIUM | …s/gpt-5/prompt-optimization-cookbook/run_FailSafeQA.py | 18 | CRITERIA_ANSWERABLE = """CRITERIA: The answer is completely accurate and comprehensive, extending the ground truth with | CODE |
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …-optimization-cookbook/results_topk_baseline/run_06.py | 47 | # Expose result as requested | COMMENT |
| HIGH | examples/data/oai_docs/latency-optimization.txt | 310 | This opens up the possibility of a trade-off. Do we keep this as a **single request entirely generated by GPT-4**, or ** | CODE |
| HIGH | examples/data/oai_docs/text-to-speech.txt | 157 | Yes, like with all outputs from our API, the person who created them owns the output. You are still required to inform e | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …amples/evals/imagegen_evals/vision_harness/__init__.py | 24 | __all__ = [ | CODE |
| LOW | examples/evals/realtime_evals/shared/result_types.py | 668 | def set_grader_result(self, grader_id: str, grade: int, rationale: str) -> None: | CODE |
| LOW | …/case_summary_service/case_summary_service/__init__.py | 3 | __all__ = ["summarize_case"] | CODE |
| LOW | …support_reply_service/customer_support_bot/__init__.py | 3 | __all__ = ["draft_reply"] | CODE |
| LOW | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 280 | __all__ = [ | CODE |
| LOW | …gents_sdk/multi-agent-portfolio-collaboration/utils.py | 101 | __all__ = [ | CODE |
| LOW⚡ | …nt-portfolio-collaboration/mcp/yahoo_finance_server.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | …s/macro_evals_for_agentic_systems/helpers/data_prep.py | 1467 | __all__ = [ | CODE |
| LOW | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 2856 | __all__ = [ | CODE |
| LOW | …/temporal_agents_with_knowledge_graphs/db_interface.py | 401 | def update_events_batch(conn: sqlite3.Connection, events: list[TemporalEvent]) -> None: | CODE |
| LOW | …s/agentic_governance_guide/guardrail_tuner/__init__.py | 28 | __all__ = [ | CODE |
| LOW | …governance_guide/guardrail_tuner/threshold_adjuster.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ntic_governance_guide/guardrail_tuner/feedback_loop.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ch_api/how_to_build_a_deep_research_mcp_server/main.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | …-optimization-cookbook/results_topk_baseline/run_01.py | 34 | __all__ = ['top_k'] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …mples/agents_sdk/deployment_manager/app/trace_store.py | 108 | trace_id text not null, | STRING |
| HIGH⚡ | …mples/agents_sdk/deployment_manager/app/trace_store.py | 123 | trace_id text not null, | STRING |
| HIGH⚡ | …mples/agents_sdk/deployment_manager/app/trace_store.py | 127 | event_type text not null, | STRING |
| HIGH⚡ | …mples/agents_sdk/deployment_manager/app/trace_store.py | 128 | received_at text not null, | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …gents_sdk/multi-agent-portfolio-collaboration/tools.py | 53 | Executes a quantitative analysis request using OpenAI's Code Interpreter (cloud). Args: request (str): | STRING |
| HIGH | …ch_api/how_to_build_a_deep_research_mcp_server/main.py | 111 | Retrieve complete document content by ID for detailed analysis and citation. This tool fetches | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/vector_databases/redis/nbutils.py | 44 | # Set vector_id to be a string | COMMENT |
| LOW | …_approach/resources/registry/tools/file_access_tool.py | 81 | # Check if container is running | COMMENT |
| LOW | examples/partners/model_selection_guide/tools.py | 154 | # Check if chemical exists in our mock database | COMMENT |
| LOW | examples/partners/model_selection_guide/tools.py | 280 | # Check if any keyword appears in title or abstract | COMMENT |
| LOW | …governance_guide/guardrail_tuner/threshold_adjuster.py | 165 | # Check if we hit bounds | COMMENT |
| LOW | examples/chatgpt/rag-quickstart/azure/function_app.py | 17 | # Check if text is provided | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …-portfolio-collaboration/investment_agents/__init__.py | 1 | # This file marks the agents directory as a Python package. | COMMENT |
| LOW | …rtners/agentic_governance_guide/promptfoo/redteam.yaml | 1 | # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json | COMMENT |
| LOW | …optimization-cookbook/results_topk_optimized/run_07.py | 41 | # Complexity: counting O(N tokens); selection O(U log k) with heap or O(U log U) when sorting; extra space O(U) + O(k) | COMMENT |
| LOW | …optimization-cookbook/results_topk_optimized/run_29.py | 41 | # Complexity: counting O(N tokens) time, O(U) space; selection O(U log k) via heap for small k or O(U log U) for large k | COMMENT |
| LOW | …optimization-cookbook/results_topk_optimized/run_14.py | 41 | # Complexity: counting O(N tokens); selection O(U log k) via heap for k < 0.3U, else O(U log U); extra space O(U) for co | COMMENT |
| LOW | …anslation_guide/livekit-translation-demo/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/fine-tuned_qa/answers_with_ft.py | 46 | CODE | |
| LOW | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 563 | CODE | |
| LOW | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 1163 | CODE | |
| LOW | …als_for_agentic_systems/helpers/macro_eval_pipeline.py | 2269 | CODE | |
| LOW | …s/gpt-5/prompt-optimization-cookbook/run_FailSafeQA.py | 268 | CODE | |
| LOW | …-optimization-cookbook/results_topk_baseline/run_07.py | 34 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | examples/data/parsed_pdf_docs.json | 1 | [{"filename": "rag-deck.pdf", "text": "RAG\nTechnique\n\nFebruary 2024\n\n\fOverview\n\nRetrieval-Augmented Generation \ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …magegen_evals/generation_harness/run_imagegen_evals.py | 187 | - Do not include placeholder or lorem ipsum text. | CODE |