openai/openai-python
Documented errors, page 2 of 2. Back to openai/openai-python
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| `model` is required for Azure Realtime API | exception | error | realtime, azure, async, missing-model |
| Expected a non-empty value for `vector_store_id` but… | validation | error | vector-stores, files, validation, valueerror, python |
| Unsupported type, expected | exception | error | cast-to, typing, runtime-validation |
| Expected query input to be a dictionary for multipart… | exception | error | openai, vector-stores, file-batches, async, validation, python |
| Passing both `body` and `content` is not supported | exception | error | openai, uploads, async, multipart, filename, typeerror, in-memory |
| Raw multipart alternative must be a string | validation | error | python, multipart, raw-body, type-error |
| The Bedrock bearer credential provider must return a… | error_code | error | bedrock, aws, bearer, validation |
| The `data_residency` and `provider` arguments are mutually… | error_code | error | data-residency, provider, mutually-exclusive, constructor |
| Bedrock authentication is ambiguous. Configure exactly one… | exception | error | bedrock, aws-credentials, ambiguous-auth, validation |
| Unexpected, list delta entry `index` value is not an… | exception | error | streaming, delta-accumulation, typeerror, python |
| Bedrock requires an AWS region. Pass `region` to… | exception | error | bedrock, aws, region, config, env-var |
| The Bedrock endpoint region | exception | error | bedrock, aws, sigv4, region |
| The Bedrock bearer credential must not be empty. | exception | error | bedrock, api-key, bearer, validation |
| StreamAlreadyConsumed | exception | error | streaming, response, httpx, read-once |
| Unsupported response_format type | validation | error | parsing, json-schema, type-validation |
| Bedrock provider authentication cannot be combined with a… | error_code | error | bedrock, aws, authorization, headers |
| Expected list delta entry to have an `index` key; | exception | error | streaming, delta-accumulation, schema-mismatch, python |
| response_id must be provided when streaming an existing… | validation | error | responses, stream, missing-argument, omit-sentinel, async, python |
| The Bedrock `endpoint` must be either `mantle` or `runtime`. | exception | error | bedrock, provider, endpoint, validation |
| Unable to automatically parse response format type | validation | error | parsing, type-validation, completions |
| X.509 workload identity is not supported by Azure clients | error_code | error | azure, authentication, x509, config |
| Multipart extra_body must be a mapping | validation | error | python, multipart, extra-body, validation |
| Expected a non-empty value for `response_id` but received | validation | error | responses, retrieve, empty-argument, validation, python |
| Static AWS credentials require non-empty `access_key_id`… | exception | error | bedrock, aws-credentials, validation |
| Static AWS credentials require both `access_key_id` and… | exception | error | bedrock, aws-credentials, validation |
| The `data_residency` and `websocket_base_url` arguments are… | validation | error | data-residency, websocket, mutually-exclusive, constructor |
| Expected a non-empty value for `character_id` but received | validation | error | videos, character, path-parameter, validation |
| Multipart field must be a string | validation | error | python, multipart, type-error, form-data |
| No embedding data received | validation | error | embeddings, parsing, empty-response |
| Bedrock authentication is ambiguous. Configure exactly one… | exception | error | bedrock, auth, ambiguous-auth, validation |
| Expected a non-empty value for `message_id` but received | validation | error | python, validation, required-parameter, threads, assistants |
| Expected custom parse type to be a subclass of | validation | error | python, streaming, sse, type-error, response-parsing |
| Passing both `content` and `json_data` is not supported | exception | error | openai, vector-stores, file-batches, async, validation, python |
| Invalid `http_client` argument; Expected an instance of… | exception | error | http-client, typeerror, async, validation, constructor |
| Missing credentials. Please pass one of `api_key`… | exception | critical | azure, authentication, env-vars, credentials |
| input must be provided when creating a new response | validation | error | responses, streaming, parameter-validation, missing-input |
| The Bedrock AWS `region` must not be empty. | exception | error | bedrock, region, validation, config |
| Expected `bedrock_token_provider` argument to return a… | validation | error | bedrock, authentication, token-provider, sync |
| send queue is full, message discarded | exception | error | websocket, queue, backpressure, send |
| Expected a non-empty value for `key_id` but received | validation | error | admin, api-keys, path-parameter, validation |
| `data_residency` is only supported by OpenAI clients | exception | error | azure, with-options, invalid-argument |
| Expected a non-empty value for `completion_id` but received | validation | error | python, openai, validation, path-parameter, chat-completions |
| The `default_query` and `set_default_query` arguments are… | validation | error | bedrock, query-params, with-options, mutually-exclusive |
| Could not convert data into a valid instance of | validation | error | python, serialization, union, schema-mismatch, response-parsing |
| id must be provided when streaming an existing response | validation | error | responses, stream, missing-argument, validation, python |
| Must provide either the `api_version` argument or the… | validation | critical | azure, config, api-version, env-vars |
| warnings is only supported in Pydantic v2 | validation | error | pydantic, serialization, v1-compat, models |
| AsyncBedrockOpenAI only supports Bedrock bearer token or… | exception | error | bedrock, with-options, admin-key, async, unsupported-parameter |
| Configure `provider` on `OpenAI`, not on… | exception | error | bedrock, with-options, unsupported-parameter, provider |
| "Could not resolve authentication method. Expected either… | validation | critical | azure, authentication, credentials, headers |
| BedrockOpenAI only supports Bedrock bearer token or AWS… | exception | error | bedrock, with-options, admin-key, unsupported-parameter |
| ` ` is not strict. Only `strict` function tools can be… | validation | error | completions, tools, strict-mode, parsing |
| Expected a non-empty value for `assistant_id` but received | validation | error | openai, assistants, beta, path-parameter, valueerror |
| Expected a non-empty value for `batch_id` but received | validation | error | openai, batches, path-parameter, valueerror |
| round_trip is only supported in Pydantic v2 | validation | error | pydantic, serialization, v1-compat, models |
| context is only supported in Pydantic v2 | validation | error | pydantic, serialization, v1-compat, models |
| Expected `azure_ad_token_provider` argument to return a… | validation | error | azure, authentication, token-provider, azure-ad |
| The `default_headers` and `set_default_headers` arguments… | validation | error | bedrock, headers, with-options, mutually-exclusive |
| serialize_as_any is only supported in Pydantic v2 | validation | error | pydantic, serialization, v1-compat, polymorphism |
| Webhook timestamp is too new | validation | error | webhooks, clock-skew, signature |
| Could not find credentials for Bedrock. Set… | exception | critical | bedrock, aws, credentials, env-var, authentication |
| Expected `$ref: ` to resolved to a dictionary but got | validation | error | json-schema, refs, pydantic, strict-mode |
| Configure `provider` on `OpenAI`, not on… | exception | error | azure, with-options, invalid-argument |
| Expected a non-empty value for `session_id` but received | validation | error | python, validation, chatkit, sessions, path-parameter |
| Invalid webhook timestamp format | validation | error | webhooks, validation, signature |
| The Bedrock `base_url` must not be empty. | exception | error | bedrock, base-url, validation, config |
| Webhook timestamp is too old | validation | error | webhooks, replay-attack, timestamp, clock-skew |
| Expected a non-empty value for `fine_tuning_job_id` but… | validation | error | python, fine-tuning, checkpoints, path-parameter, valueerror |
| Unexpected $ref format | validation | error | json-schema, refs, pydantic |
| Expected a non-empty value for `certificate_id` but received | validation | error | admin, certificates, path-parameter, validation |
| The `api_key` and `token_provider` options are mutually… | exception | error | bedrock, auth, mutually-exclusive, validation |
| The Bedrock AWS `profile` must not be empty. | exception | error | bedrock, profile, aws-credentials, validation |
| ensure_ascii is only supported in Pydantic v2 | validation | error | pydantic, serialization, json, unicode, v1-compat |
| base_url and azure_endpoint are mutually exclusive | validation | error | azure, configuration, mutually-exclusive |
| Expected a non-empty value for `step_id` but received | validation | error | python, openai, assistants, run-steps, step-id, validation |
| A static AWS `session_token` must not be empty when… | exception | error | bedrock, aws-credentials, session-token, validation |
| mode must be either 'json' or 'python' | validation | error | pydantic, serialization, models, v1-compat |
| exclude_computed_fields is only supported in Pydantic v2 | validation | error | pydantic, serialization, v1-compat, computed-fields |
| The `api_key` argument must not be empty. | exception | error | bedrock, authentication, api-key, validation |
| fallback is only supported in Pydantic v2 | validation | error | pydantic, serialization, v1-compat, models |
| Configure `provider` on `AsyncOpenAI`, not on… | exception | error | azure, with-options, invalid-argument, async |
| Configure `provider` on `AsyncOpenAI`, not on… | exception | error | bedrock, with-options, provider, async, unsupported-parameter |
| Expected a non-empty value for `alert_id` but received | validation | error | openai, admin-api, validation, valueerror, alert-id, spend-alerts |