The official Python library for the OpenAI API
9098 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/openai/_response.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. |
| HIGH | src/openai/_response.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. |
| HIGH | src/openai/_streaming.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. |
| HIGH | src/openai/_streaming.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. |
| HIGH | src/openai/lib/streaming/chat/_completions.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. |
| HIGH | src/openai/lib/streaming/chat/_completions.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. |
| HIGH | src/openai/lib/streaming/responses/_responses.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. |
| HIGH | src/openai/lib/streaming/responses/_responses.py | 0 | close the response and release the connection. automatically called if the response body is read to completion. |
| HIGH | src/openai/_response.py | 0 | higher order function that takes one of our bound api methods and wraps it to support returning the raw `apiresponse` ob |
| HIGH | src/openai/_response.py | 0 | higher order function that takes one of our bound api methods and wraps it to support returning the raw `apiresponse` ob |
| HIGH | src/openai/_legacy_response.py | 0 | higher order function that takes one of our bound api methods and wraps it to support returning the raw `apiresponse` ob |
| HIGH | src/openai/_legacy_response.py | 0 | higher order function that takes one of our bound api methods and wraps it to support returning the raw `apiresponse` ob |
| HIGH | src/openai/_streaming.py | 0 | given an iterator that yields raw binary data, iterate over it & yield every event encountered |
| HIGH | src/openai/_streaming.py | 0 | given an iterator that yields raw binary data, iterate over it & yield every event encountered |
| HIGH | src/openai/_streaming.py | 0 | given an iterator that yields raw binary data, iterate over it & yield every event encountered |
| HIGH | src/openai/_client.py | 0 | given a prompt, the model will return one or more predicted completions, and can also return the probabilities of altern |
| HIGH | src/openai/_client.py | 0 | given a prompt, the model will return one or more predicted completions, and can also return the probabilities of altern |
| HIGH | src/openai/_client.py | 0 | given a prompt, the model will return one or more predicted completions, and can also return the probabilities of altern |
| HIGH | src/openai/_client.py | 0 | given a prompt, the model will return one or more predicted completions, and can also return the probabilities of altern |
| HIGH | src/openai/_client.py | 0 | given a prompt, the model will return one or more predicted completions, and can also return the probabilities of altern |
| HIGH | src/openai/_client.py | 0 | given a prompt, the model will return one or more predicted completions, and can also return the probabilities of altern |
| HIGH | src/openai/resources/completions.py | 0 | given a prompt, the model will return one or more predicted completions, and can also return the probabilities of altern |
| HIGH | src/openai/resources/completions.py | 0 | given a prompt, the model will return one or more predicted completions, and can also return the probabilities of altern |
| HIGH | src/openai/_client.py | 0 | get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. |
| HIGH | src/openai/_client.py | 0 | get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. |
| HIGH | src/openai/_client.py | 0 | get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. |
| HIGH | src/openai/_client.py | 0 | get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. |
| HIGH | src/openai/_client.py | 0 | get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. |
| HIGH | src/openai/_client.py | 0 | get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. |
| HIGH | src/openai/resources/embeddings.py | 0 | get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. |
| HIGH | src/openai/resources/embeddings.py | 0 | get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. |
| HIGH | src/openai/_client.py | 0 | files are used to upload documents that can be used with features like assistants and fine-tuning. |
| HIGH | src/openai/_client.py | 0 | files are used to upload documents that can be used with features like assistants and fine-tuning. |
| HIGH | src/openai/_client.py | 0 | files are used to upload documents that can be used with features like assistants and fine-tuning. |
| HIGH | src/openai/_client.py | 0 | files are used to upload documents that can be used with features like assistants and fine-tuning. |
| HIGH | src/openai/_client.py | 0 | files are used to upload documents that can be used with features like assistants and fine-tuning. |
| HIGH | src/openai/_client.py | 0 | files are used to upload documents that can be used with features like assistants and fine-tuning. |
| HIGH | src/openai/resources/files.py | 0 | files are used to upload documents that can be used with features like assistants and fine-tuning. |
| HIGH | src/openai/resources/files.py | 0 | files are used to upload documents that can be used with features like assistants and fine-tuning. |
| HIGH | src/openai/_client.py | 0 | given a prompt and/or an input image, the model will generate a new image. |
| HIGH | src/openai/_client.py | 0 | given a prompt and/or an input image, the model will generate a new image. |
| HIGH | src/openai/_client.py | 0 | given a prompt and/or an input image, the model will generate a new image. |
| HIGH | src/openai/_client.py | 0 | given a prompt and/or an input image, the model will generate a new image. |
| HIGH | src/openai/_client.py | 0 | given a prompt and/or an input image, the model will generate a new image. |
| HIGH | src/openai/_client.py | 0 | given a prompt and/or an input image, the model will generate a new image. |
| HIGH | src/openai/resources/images.py | 0 | given a prompt and/or an input image, the model will generate a new image. |
| HIGH | src/openai/resources/images.py | 0 | given a prompt and/or an input image, the model will generate a new image. |
| HIGH | src/openai/_client.py | 0 | given text and/or image inputs, classifies if those inputs are potentially harmful. |
| HIGH | src/openai/_client.py | 0 | given text and/or image inputs, classifies if those inputs are potentially harmful. |
| HIGH | src/openai/_client.py | 0 | given text and/or image inputs, classifies if those inputs are potentially harmful. |
| HIGH | src/openai/_client.py | 0 | given text and/or image inputs, classifies if those inputs are potentially harmful. |
| HIGH | src/openai/_client.py | 0 | given text and/or image inputs, classifies if those inputs are potentially harmful. |
| HIGH | src/openai/_client.py | 0 | given text and/or image inputs, classifies if those inputs are potentially harmful. |
| HIGH | src/openai/resources/moderations.py | 0 | given text and/or image inputs, classifies if those inputs are potentially harmful. |
| HIGH | src/openai/resources/moderations.py | 0 | given text and/or image inputs, classifies if those inputs are potentially harmful. |
| HIGH | src/openai/_client.py | 0 | list and describe the various models available in the api. |
| HIGH | src/openai/_client.py | 0 | list and describe the various models available in the api. |
| HIGH | src/openai/_client.py | 0 | list and describe the various models available in the api. |
| HIGH | src/openai/_client.py | 0 | list and describe the various models available in the api. |
| HIGH | src/openai/_client.py | 0 | list and describe the various models available in the api. |
| 3813 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 62 | response = client.beta.chatkit.sessions.with_raw_response.create( |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 74 | with client.beta.chatkit.sessions.with_streaming_response.create( |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 95 | response = client.beta.chatkit.sessions.with_raw_response.cancel( |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 106 | with client.beta.chatkit.sessions.with_streaming_response.cancel( |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 120 | client.beta.chatkit.sessions.with_raw_response.cancel( |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 170 | response = await async_client.beta.chatkit.sessions.with_raw_response.create( |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 182 | async with async_client.beta.chatkit.sessions.with_streaming_response.create( |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 203 | response = await async_client.beta.chatkit.sessions.with_raw_response.cancel( |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 214 | async with async_client.beta.chatkit.sessions.with_streaming_response.cancel( |
| CRITICAL | tests/api_resources/beta/chatkit/test_sessions.py | 228 | await async_client.beta.chatkit.sessions.with_raw_response.cancel( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 31 | response = client.beta.chatkit.threads.with_raw_response.retrieve( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 42 | with client.beta.chatkit.threads.with_streaming_response.retrieve( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 56 | client.beta.chatkit.threads.with_raw_response.retrieve( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 78 | response = client.beta.chatkit.threads.with_raw_response.list() |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 87 | with client.beta.chatkit.threads.with_streaming_response.list() as response: |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 105 | response = client.beta.chatkit.threads.with_raw_response.delete( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 116 | with client.beta.chatkit.threads.with_streaming_response.delete( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 154 | response = client.beta.chatkit.threads.with_raw_response.list_items( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 165 | with client.beta.chatkit.threads.with_streaming_response.list_items( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 198 | response = await async_client.beta.chatkit.threads.with_raw_response.retrieve( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 209 | async with async_client.beta.chatkit.threads.with_streaming_response.retrieve( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 223 | await async_client.beta.chatkit.threads.with_raw_response.retrieve( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 245 | response = await async_client.beta.chatkit.threads.with_raw_response.list() |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 254 | async with async_client.beta.chatkit.threads.with_streaming_response.list() as response: |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 272 | response = await async_client.beta.chatkit.threads.with_raw_response.delete( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 283 | async with async_client.beta.chatkit.threads.with_streaming_response.delete( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 321 | response = await async_client.beta.chatkit.threads.with_raw_response.list_items( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 332 | async with async_client.beta.chatkit.threads.with_streaming_response.list_items( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 130 | client.beta.chatkit.threads.with_raw_response.delete( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 179 | client.beta.chatkit.threads.with_raw_response.list_items( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 297 | await async_client.beta.chatkit.threads.with_raw_response.delete( |
| CRITICAL | tests/api_resources/beta/chatkit/test_threads.py | 346 | await async_client.beta.chatkit.threads.with_raw_response.list_items( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 248 | client.beta.threads.runs.with_raw_response.retrieve( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 254 | client.beta.threads.runs.with_raw_response.retrieve( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 348 | response = client.beta.threads.runs.with_raw_response.list( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 360 | with client.beta.threads.runs.with_streaming_response.list( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 798 | await async_client.beta.threads.runs.with_raw_response.retrieve( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 804 | await async_client.beta.threads.runs.with_raw_response.retrieve( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 898 | response = await async_client.beta.threads.runs.with_raw_response.list( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 910 | async with async_client.beta.threads.runs.with_streaming_response.list( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 80 | response = client.beta.threads.runs.with_raw_response.create( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 93 | with client.beta.threads.runs.with_streaming_response.create( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 109 | client.beta.threads.runs.with_raw_response.create( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 170 | response = client.beta.threads.runs.with_raw_response.create( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 183 | with client.beta.threads.runs.with_streaming_response.create( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 200 | client.beta.threads.runs.with_raw_response.create( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 219 | response = client.beta.threads.runs.with_raw_response.retrieve( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 232 | with client.beta.threads.runs.with_streaming_response.retrieve( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 283 | response = client.beta.threads.runs.with_raw_response.update( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 296 | with client.beta.threads.runs.with_streaming_response.update( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 312 | client.beta.threads.runs.with_raw_response.update( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 318 | client.beta.threads.runs.with_raw_response.update( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 375 | client.beta.threads.runs.with_raw_response.list( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 392 | response = client.beta.threads.runs.with_raw_response.cancel( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 405 | with client.beta.threads.runs.with_streaming_response.cancel( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 421 | client.beta.threads.runs.with_raw_response.cancel( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 427 | client.beta.threads.runs.with_raw_response.cancel( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 463 | response = client.beta.threads.runs.with_raw_response.submit_tool_outputs( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 477 | with client.beta.threads.runs.with_streaming_response.submit_tool_outputs( |
| CRITICAL | tests/api_resources/beta/threads/test_runs.py | 494 | client.beta.threads.runs.with_raw_response.submit_tool_outputs( |
| 1000 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/conftest.py | 3 | |
| LOW | tests/test_module_client.py | 3 | |
| LOW | tests/test_transform.py | 1 | |
| LOW | tests/test_streaming.py | 1 | |
| LOW | tests/utils.py | 1 | |
| LOW | tests/test_send_queue.py | 3 | |
| LOW | tests/test_required_args.py | 1 | |
| LOW | tests/test_client.py | 3 | |
| LOW | tests/test_client.py | 21 | |
| LOW | tests/test_extract_files.py | 1 | |
| LOW | tests/test_utils/test_typing.py | 1 | |
| LOW | tests/test_utils/test_json.py | 1 | |
| LOW | tests/test_utils/test_path.py | 1 | |
| LOW | tests/lib/snapshots.py | 1 | |
| LOW | tests/lib/test_pydantic.py | 1 | |
| LOW | tests/lib/test_audio.py | 1 | |
| LOW | tests/lib/utils.py | 1 | |
| LOW | tests/lib/utils.py | 4 | |
| LOW | tests/lib/utils.py | 4 | |
| LOW | tests/lib/test_azure.py | 1 | |
| LOW | tests/lib/test_assistants.py | 1 | |
| LOW | tests/lib/chat/test_completions_streaming.py | 1 | |
| LOW | tests/lib/chat/test_completions.py | 1 | |
| LOW | tests/lib/responses/test_responses.py | 1 | |
| LOW | tests/api_resources/test_moderations.py | 3 | |
| LOW | tests/api_resources/test_images.py | 3 | |
| LOW | tests/api_resources/test_embeddings.py | 3 | |
| LOW | tests/api_resources/test_vector_stores.py | 3 | |
| LOW | tests/api_resources/test_videos.py | 3 | |
| LOW | tests/api_resources/test_realtime.py | 3 | |
| LOW | tests/api_resources/test_webhooks.py | 3 | |
| LOW | tests/api_resources/test_containers.py | 3 | |
| LOW | tests/api_resources/test_files.py | 3 | |
| LOW | tests/api_resources/test_responses.py | 3 | |
| LOW | tests/api_resources/test_skills.py | 3 | |
| LOW | tests/api_resources/test_models.py | 3 | |
| LOW | tests/api_resources/test_completions.py | 3 | |
| LOW | tests/api_resources/test_conversations.py | 3 | |
| LOW | tests/api_resources/test_evals.py | 3 | |
| LOW | tests/api_resources/test_uploads.py | 3 | |
| LOW | tests/api_resources/test_batches.py | 3 | |
| LOW | tests/api_resources/beta/test_realtime.py | 3 | |
| LOW | tests/api_resources/beta/test_threads.py | 3 | |
| LOW | tests/api_resources/beta/test_assistants.py | 3 | |
| LOW | tests/api_resources/beta/chatkit/test_sessions.py | 3 | |
| LOW | tests/api_resources/beta/chatkit/test_threads.py | 3 | |
| LOW | tests/api_resources/beta/threads/test_runs.py | 3 | |
| LOW | tests/api_resources/beta/threads/test_messages.py | 3 | |
| LOW | tests/api_resources/beta/threads/runs/test_steps.py | 3 | |
| LOW | tests/api_resources/vector_stores/test_file_batches.py | 3 | |
| LOW | tests/api_resources/vector_stores/test_files.py | 3 | |
| LOW | tests/api_resources/evals/test_runs.py | 3 | |
| LOW | tests/api_resources/evals/runs/test_output_items.py | 3 | |
| LOW | tests/api_resources/fine_tuning/test_jobs.py | 3 | |
| LOW | …_resources/fine_tuning/checkpoints/test_permissions.py | 3 | |
| LOW | …sts/api_resources/fine_tuning/jobs/test_checkpoints.py | 3 | |
| LOW | tests/api_resources/fine_tuning/alpha/test_graders.py | 3 | |
| LOW | tests/api_resources/chat/test_completions.py | 3 | |
| LOW | tests/api_resources/chat/completions/test_messages.py | 3 | |
| LOW | tests/api_resources/responses/test_input_items.py | 3 | |
| 2547 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | helpers.md | 480 | def current_run_step_snapshot() -> RunStep | None |
| LOW | tests/conftest.py | 26 | def pytest_collection_modifyitems(items: list[pytest.Function]) -> None: |
| LOW | tests/test_module_client.py | 70 | def test_default_headers_option() -> None: |
| LOW | tests/test_module_client.py | 79 | def test_default_query_option() -> None: |
| LOW | tests/test_module_client.py | 119 | def test_only_api_key_results_in_openai_api() -> None: |
| LOW | tests/test_module_client.py | 127 | def test_azure_api_key_env_without_api_version() -> None: |
| LOW | tests/test_module_client.py | 139 | def test_azure_api_key_and_version_env() -> None: |
| LOW | tests/test_module_client.py | 152 | def test_azure_api_key_version_and_endpoint_env() -> None: |
| LOW | tests/test_module_client.py | 164 | def test_azure_azure_ad_token_version_and_endpoint_env() -> None: |
| LOW | tests/test_module_client.py | 176 | def test_azure_azure_ad_token_provider_version_and_endpoint_env() -> None: |
| LOW | tests/test_transform.py | 141 | async def test_includes_unknown_keys(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 159 | async def test_ignores_invalid_input(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 251 | async def test_datetime_custom_format(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 277 | async def test_pydantic_model_to_dictionary(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 284 | async def test_pydantic_empty_model(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 290 | async def test_pydantic_unknown_field(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 298 | async def test_pydantic_mismatched_types(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 310 | async def test_pydantic_mismatched_object_type(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 326 | async def test_pydantic_nested_objects(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 340 | async def test_pydantic_default_field(use_async: bool) -> None: |
| LOW | tests/test_transform.py | 374 | async def test_iterable_of_dictionaries(use_async: bool) -> None: |
| LOW | tests/test_response.py | 33 | def test_extract_response_type_direct_classes() -> None: |
| LOW | tests/test_response.py | 39 | def test_extract_response_type_direct_class_missing_type_arg() -> None: |
| LOW | tests/test_response.py | 47 | def test_extract_response_type_concrete_subclasses() -> None: |
| LOW | tests/test_response.py | 53 | def test_extract_response_type_binary_response() -> None: |
| LOW | tests/test_response.py | 61 | def test_response_parse_mismatched_basemodel(client: OpenAI) -> None: |
| LOW | tests/test_response.py | 79 | async def test_async_response_parse_mismatched_basemodel(async_client: AsyncOpenAI) -> None: |
| LOW | tests/test_response.py | 96 | def test_response_parse_custom_stream(client: OpenAI) -> None: |
| LOW | tests/test_response.py | 111 | async def test_async_response_parse_custom_stream(async_client: AsyncOpenAI) -> None: |
| LOW | tests/test_response.py | 130 | def test_response_parse_custom_model(client: OpenAI) -> None: |
| LOW | tests/test_response.py | 146 | async def test_async_response_parse_custom_model(async_client: AsyncOpenAI) -> None: |
| LOW | tests/test_response.py | 161 | def test_response_basemodel_request_id(client: OpenAI) -> None: |
| LOW | tests/test_response.py | 185 | async def test_async_response_basemodel_request_id(client: OpenAI) -> None: |
| LOW | tests/test_response.py | 206 | def test_response_parse_annotated_type(client: OpenAI) -> None: |
| LOW | tests/test_response.py | 223 | async def test_async_response_parse_annotated_type(async_client: AsyncOpenAI) -> None: |
| LOW | tests/test_response.py | 276 | async def test_async_response_parse_bool(client: AsyncOpenAI, content: str, expected: bool) -> None: |
| LOW | tests/test_response.py | 295 | def test_response_parse_expect_model_union_non_json_content(client: OpenAI) -> None: |
| LOW | tests/test_response.py | 312 | async def test_async_response_parse_expect_model_union_non_json_content(async_client: AsyncOpenAI) -> None: |
| LOW | tests/test_websocket_connection_options.py | 5 | def test_submodule_alias_is_preserved() -> None: |
| LOW | tests/test_websocket_connection_options.py | 12 | def test_public_types_alias_is_preserved() -> None: |
| LOW | tests/test_websocket_connection_options.py | 16 | def test_beta_realtime_import_still_works_with_old_alias() -> None: |
| LOW | tests/test_auth.py | 59 | def test_workload_identity_exchange_payload_and_cache() -> None: |
| LOW | tests/test_auth.py | 120 | def test_workload_identity_exchange_error() -> None: |
| LOW | tests/test_auth.py | 166 | def test_azure_managed_identity_token_provider() -> None: |
| LOW | tests/test_auth.py | 178 | def test_gcp_id_token_provider() -> None: |
| LOW | tests/test_streaming.py | 85 | async def test_multiple_events_with_data(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None: |
| LOW | tests/test_streaming.py | 109 | async def test_multiple_data_lines_with_empty_line(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None: |
| LOW | tests/test_streaming.py | 131 | async def test_data_json_escaped_double_new_line(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None: |
| LOW | tests/test_streaming.py | 166 | async def test_special_new_line_character( |
| LOW | tests/test_streaming.py | 197 | async def test_multi_byte_character_multiple_chunks( |
| LOW | tests/test_qs.py | 76 | def test_unknown_array_format() -> None: |
| LOW | tests/test_files.py | 13 | def test_pathlib_includes_file_name() -> None: |
| LOW | tests/test_files.py | 26 | async def test_async_pathlib_includes_file_name() -> None: |
| LOW | tests/test_files.py | 33 | async def test_async_supports_anyio_path() -> None: |
| LOW | tests/test_files.py | 55 | def assert_different_identities(obj1: object, obj2: object) -> None: |
| LOW | tests/test_files.py | 61 | def test_copies_top_level_dict(self) -> None: |
| LOW | tests/test_files.py | 66 | def test_file_value_is_same_reference(self) -> None: |
| LOW | tests/test_files.py | 73 | def test_list_popped_wholesale(self) -> None: |
| LOW | tests/test_files.py | 82 | def test_nested_array_path_copies_list_and_elements(self) -> None: |
| LOW | tests/test_files.py | 94 | def test_empty_paths_returns_same_object(self) -> None: |
| 1359 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test_utils/test_json.py | 121 | assert json_bytes == b'{"model":{"name":"Eve","email":null,"phone":null}}' |
| HIGH | tests/test_utils/test_json.py | 126 | assert json_bytes == b'{"model":{"name":"Frank","email":"frank@example.com","phone":null}}' |
| HIGH | tests/lib/chat/test_completions.py | 44 | '{"id": "chatcmpl-ABfvaueLEMLNYbT8YzpJxsmiQ6HSY", "object": "chat.completion", "created": 1727346142, "model |
| HIGH | tests/lib/chat/test_completions.py | 114 | '{"id": "chatcmpl-ABfvbtVnTu5DeC4EFnRYj8mtfOM99", "object": "chat.completion", "created": 1727346143, "model |
| HIGH | tests/lib/chat/test_completions.py | 185 | '{"id": "chatcmpl-ABfvcC8grKYsRkSoMp9CCAhbXAd0b", "object": "chat.completion", "created": 1727346144, "model |
| HIGH | tests/lib/chat/test_completions.py | 260 | '{"id": "chatcmpl-ABfvjIatz0zrZu50gRbMtlp0asZpz", "object": "chat.completion", "created": 1727346151, "model |
| HIGH | tests/lib/chat/test_completions.py | 310 | '{"id": "chatcmpl-ABfvp8qzboW92q8ONDF4DPHlI7ckC", "object": "chat.completion", "created": 1727346157, "model |
| HIGH | tests/lib/chat/test_completions.py | 391 | '{"id": "chatcmpl-ABfvqhz4uUUWsw8Ohw2Mp9B4sKKV8", "object": "chat.completion", "created": 1727346158, "model |
| HIGH | tests/lib/chat/test_completions.py | 456 | '{"id": "chatcmpl-ABfvtNiaTNUF6OymZUnEFc9lPq9p1", "object": "chat.completion", "created": 1727346161, "model |
| HIGH | tests/lib/chat/test_completions.py | 542 | '{"id": "chatcmpl-ABfvvX7eB1KsfeZj8VcF3z7G7SbaA", "object": "chat.completion", "created": 1727346163, "m |
| HIGH | tests/lib/chat/test_completions.py | 569 | '{"id": "chatcmpl-ABfvwoKVWPQj2UPlAcAKM7s40GsRx", "object": "chat.completion", "created": 1727346164, "model |
| HIGH | tests/lib/chat/test_completions.py | 620 | '{"id": "chatcmpl-ABfvx6Z4dchiW2nya1N8KMsHFrQRE", "object": "chat.completion", "created": 1727346165, "model |
| HIGH | tests/lib/chat/test_completions.py | 694 | '{"id": "chatcmpl-ABfvyvfNWKcl7Ohqos4UFrmMs1v4C", "object": "chat.completion", "created": 1727346166, "model |
| HIGH | tests/lib/chat/test_completions.py | 777 | '{"id": "chatcmpl-ABfvzdvCI6RaIkiEFNjqGXCSYnlzf", "object": "chat.completion", "created": 1727346167, "model |
| HIGH | tests/lib/chat/test_completions.py | 855 | '{"id": "chatcmpl-ABrDYCa8W1w66eUxKDO8TQF1m6trT", "object": "chat.completion", "created": 1727389540, "model |
| HIGH | tests/lib/chat/test_completions.py | 932 | '{"id": "chatcmpl-ABrDQWOiw0PK5JOsxl1D9ooeQgznq", "object": "chat.completion", "created": 1727389532, "model |
| HIGH | tests/lib/responses/test_responses.py | 32 | '{"id": "resp_689a0b2545288193953c892439b42e2800b2e36c65a1fd4b", "object": "response", "created_at": 1754925 |
| HIGH | …ta/chatkit/chat_session_chatkit_configuration_param.py | 42 | When omitted, history is enabled by default with no limit on recent_threads (null). |
| HIGH | …ta/chatkit/chat_session_chatkit_configuration_param.py | 75 | (null). |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | README.md | 543 | except Exception as e: |
| LOW | README.md | 579 | except Exception as e: |
| LOW | examples/image_stream.py | 52 | except Exception as error: |
| MEDIUM | examples/image_stream.py | 53 | print(f"Error generating image: {error}") |
| LOW | scripts/utils/ruffen-docs.py | 42 | except Exception as e: |
| LOW | src/openai/_send_queue.py | 52 | except Exception: |
| LOW | src/openai/_send_queue.py | 69 | except Exception: |
| LOW | src/openai/_base_client.py | 424 | except Exception: |
| LOW | src/openai/_base_client.py | 861 | except Exception: |
| LOW | src/openai/_base_client.py | 1059 | except Exception as err: |
| LOW | src/openai/_base_client.py | 1471 | except Exception: |
| LOW | src/openai/_base_client.py | 1670 | except Exception as err: |
| LOW | src/openai/_base_client.py | 2103 | except Exception: |
| LOW | src/openai/_base_client.py | 2168 | except Exception: |
| LOW | src/openai/_base_client.py | 2175 | except Exception: |
| LOW | src/openai/_base_client.py | 2182 | except Exception: |
| MEDIUM | src/openai/_base_client.py | 2099 | def get_platform() -> Platform: |
| MEDIUM | src/openai/_base_client.py | 2165 | def get_python_runtime() -> str: |
| MEDIUM | src/openai/_base_client.py | 2172 | def get_python_version() -> str: |
| MEDIUM | src/openai/_base_client.py | 2179 | def get_architecture() -> Arch: |
| LOW | src/openai/_response.py | 247 | except Exception as exc: |
| LOW | src/openai/_legacy_response.py | 314 | except Exception as exc: |
| LOW | src/openai/_models.py | 622 | except Exception: |
| LOW | src/openai/_models.py | 651 | except Exception: |
| LOW | src/openai/_models.py | 696 | except Exception: |
| LOW | src/openai/_models.py | 702 | except Exception: |
| LOW | src/openai/_utils/_proxy.py | 51 | except Exception: |
| LOW | src/openai/_utils/_utils.py | 410 | except Exception: |
| MEDIUM | src/openai/_utils/_utils.py | 407 | def get_async_library() -> str: |
| LOW | src/openai/auth/_workload.py | 62 | except Exception as e: |
| LOW | src/openai/auth/_workload.py | 122 | except Exception as e: |
| LOW | src/openai/auth/_workload.py | 166 | except Exception as e: |
| MEDIUM | src/openai/auth/_workload.py | 55 | def get_token() -> str: |
| MEDIUM | src/openai/auth/_workload.py | 93 | def get_token() -> str: |
| MEDIUM | src/openai/auth/_workload.py | 146 | def get_token() -> str: |
| LOW | src/openai/resources/responses/responses.py | 3767 | except Exception: |
| LOW | src/openai/resources/responses/responses.py | 3831 | except Exception: |
| LOW | src/openai/resources/responses/responses.py | 3863 | except Exception: |
| LOW | src/openai/resources/responses/responses.py | 3877 | except Exception: |
| LOW | src/openai/resources/responses/responses.py | 4224 | except Exception: |
| LOW | src/openai/resources/responses/responses.py | 4286 | except Exception: |
| LOW | src/openai/resources/responses/responses.py | 4318 | except Exception: |
| LOW | src/openai/resources/responses/responses.py | 4328 | except Exception: |
| LOW | src/openai/resources/realtime/realtime.py | 356 | except Exception: |
| LOW | src/openai/resources/realtime/realtime.py | 419 | except Exception: |
| LOW | src/openai/resources/realtime/realtime.py | 451 | except Exception: |
| LOW | src/openai/resources/realtime/realtime.py | 465 | except Exception: |
| LOW | src/openai/resources/realtime/realtime.py | 836 | except Exception: |
| LOW | src/openai/resources/realtime/realtime.py | 897 | except Exception: |
| LOW | src/openai/resources/realtime/realtime.py | 929 | except Exception: |
| LOW | src/openai/resources/realtime/realtime.py | 939 | except Exception: |
| LOW | src/openai/lib/streaming/_assistants.py | 414 | except Exception as exc: |
| LOW | src/openai/lib/streaming/_assistants.py | 846 | except Exception as exc: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/utils.py | 56 | |
| LOW | tests/lib/test_audio.py | 19 | |
| LOW | tests/lib/test_audio.py | 54 | |
| LOW | examples/image_stream.py | 11 | |
| LOW | examples/responses/websocket.py | 267 | |
| LOW | examples/realtime/realtime.py | 13 | |
| LOW | examples/realtime/azure_realtime.py | 15 | |
| LOW | examples/realtime/audio_util.py | 95 | |
| LOW | src/openai/_base_client.py | 498 | |
| LOW | src/openai/_streaming.py | 55 | |
| LOW | src/openai/_streaming.py | 165 | |
| LOW | src/openai/_streaming.py | 339 | |
| LOW | src/openai/_qs.py | 65 | |
| LOW | src/openai/_models.py | 588 | |
| LOW | src/openai/_models.py | 757 | |
| LOW | src/openai/_utils/_transform.py | 236 | |
| LOW | src/openai/_utils/_transform.py | 402 | |
| LOW | src/openai/types/responses/parsed_response.py | 113 | |
| LOW | src/openai/types/responses/response.py | 310 | |
| LOW | src/openai/resources/videos.py | 171 | |
| LOW | src/openai/resources/videos.py | 750 | |
| LOW | src/openai/resources/vector_stores/files.py | 360 | |
| LOW | src/openai/resources/vector_stores/files.py | 814 | |
| LOW | src/openai/resources/vector_stores/file_batches.py | 331 | |
| LOW | src/openai/resources/vector_stores/file_batches.py | 719 | |
| LOW | src/openai/resources/responses/responses.py | 3714 | |
| LOW | src/openai/resources/responses/responses.py | 4171 | |
| LOW | src/openai/resources/uploads/uploads.py | 414 | |
| LOW | src/openai/resources/realtime/realtime.py | 303 | |
| LOW | src/openai/resources/realtime/realtime.py | 783 | |
| LOW | src/openai/resources/audio/translations.py | 366 | |
| LOW | src/openai/resources/audio/transcriptions.py | 1002 | |
| LOW | src/openai/lib/_validators.py | 451 | |
| LOW | src/openai/lib/_validators.py | 640 | |
| LOW | src/openai/lib/_parsing/_responses.py | 53 | |
| LOW | src/openai/lib/_parsing/_completions.py | 86 | |
| LOW | src/openai/lib/streaming/_deltas.py | 6 | |
| LOW | src/openai/lib/streaming/_assistants.py | 980 | |
| LOW | src/openai/lib/streaming/_assistants.py | 255 | |
| LOW | src/openai/lib/streaming/_assistants.py | 687 | |
| LOW | src/openai/lib/streaming/chat/_completions.py | 360 | |
| LOW | src/openai/lib/streaming/chat/_completions.py | 493 | |
| LOW | src/openai/lib/streaming/responses/_responses.py | 247 | |
| LOW | src/openai/lib/streaming/responses/_responses.py | 325 | |
| LOW | src/openai/helpers/local_audio_player.py | 104 | |
| LOW | src/openai/helpers/local_audio_player.py | 119 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/lib/chat/test_completions_streaming.py | 73 | content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I |
| MEDIUM | tests/lib/chat/test_completions_streaming.py | 88 | content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I recommend |
| MEDIUM | tests/lib/chat/test_completions_streaming.py | 1057 | content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I |
| MEDIUM | tests/lib/chat/test_completions.py | 62 | content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I |
| MEDIUM | examples/streaming.py | 44 | # In Python 3.10+ you can also use the `await anext(response)` builtin instead |
| MEDIUM | …c/openai/types/evals/runs/output_item_list_response.py | 38 | # To access properties that are not valid identifiers you can use `getattr`, e.g. |
| MEDIUM | …enai/types/evals/runs/output_item_retrieve_response.py | 38 | # To access properties that are not valid identifiers you can use `getattr`, e.g. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pyproject.toml | 187 | # it's fine to just use Pyright. |
| LOW | src/openai/_response.py | 263 | # If the API responds with content that isn't JSON then we just return |
| LOW | src/openai/_legacy_response.py | 330 | # If the API responds with content that isn't JSON then we just return |
| LOW | src/openai/_models.py | 491 | # If the type cannot be reconstructed, just return the validated list |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/openai/_utils/_path.py | 79 | Interpolate {name} placeholders in `template` from keyword arguments. Args: template: The template string c |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/realtime/push_to_talk_app.py | 1 | #!/usr/bin/env uv run |
| LOW | src/openai/_types.py | 101 | # method that uses `ResponseT` which would lead to an unacceptable |
| LOW | src/openai/_client.py | 641 | default_headers: Mapping[str, str] | None = None, |
| LOW | src/openai/_models.py | 621 | return validate_type(type_=cast("type[object]", original_type or type_), value=value) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_utils/test_json.py | 98 | address = Address(street="123 Main St") |
| LOW | tests/test_utils/test_json.py | 102 | assert json_bytes == b'{"user":{"name":"Diana","address":{"street":"123 Main St"}}}' |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/openai/_base_client.py | 950 | """This method is used as a callback for mutating the `Request` object |
| MEDIUM | src/openai/_base_client.py | 1557 | """This method is used as a callback for mutating the `Request` object |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_client.py | 82 | def handle_request( |