portkey-ai breaking changes
portkey-ai 2.0.0 (October 14, 2025) is its newest release with breaking changes, 158 of them. The first: Removed portkey_ai.api_resources.apis.assistants.NOT_GIVEN. Every breaking API change we have recorded in portkey-ai on PyPI: 158 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.3.4, released July 23, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
portkey-ai 2.0.0 breaking changes
- Removed
portkey_ai.api_resources.apis.assistants.NOT_GIVEN
portkey_ai.api_resources.apis.assistants.NOT_GIVEN was removed in portkey-ai 2.0.0 pypi.org - Removed
portkey_ai.api_resources.apis.assistants.NotGiven
portkey_ai.api_resources.apis.assistants.NotGiven was removed in portkey-ai 2.0.0 pypi.org - Signature changed
portkey_ai.api_resources.apis.assistants.Assistants.create
Was def create(self, model: Union[str, Any] = 'portkey-default', description: Union[str, NotGiven] = NOT_GIVEN, instructions: Union[str, NotGiven] = NOT_GIVEN, metadata: Union[Optional[Metadata], NotGiven] = NOT_GIVEN, name: Union[str... pypi.org - Signature changed
portkey_ai.api_resources.apis.assistants.Assistants.list
Was def list(self, *, after: Union[str, NotGiven] = NOT_GIVEN, before: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[NotGiven, Literal['asc', 'desc']] = NOT_GIVEN, **kwargs) -> AssistantList; now... pypi.org - Signature changed
portkey_ai.api_resources.apis.assistants.Assistants.update
Was def update(self, assistant_id, *, description: Union[str, NotGiven] = NOT_GIVEN, instructions: Union[str, NotGiven] = NOT_GIVEN, metadata: Union[Optional[Metadata], NotGiven] = NOT_GIVEN, model: Union[str, NotGiven] =... pypi.org - Signature changed
portkey_ai.api_resources.apis.audio.Speech.create
Was def create(self, *, input: str, model: str, voice: str, response_format: Union[str, NotGiven] = NOT_GIVEN, speed: Union[float, NotGiven] = NOT_GIVEN, stream: Union[bool, NotGiven] = NOT_GIVEN, **kwargs) -> Any; now def create(self, *... pypi.org - Signature changed
portkey_ai.api_resources.apis.audio.Transcriptions.create
Was def create(self, *, file: FileTypes, model: str, language: Union[str, NotGiven] = NOT_GIVEN, prompt: Union[str, NotGiven] = NOT_GIVEN, response_format: Union[str, NotGiven] = NOT_GIVEN, temperature: Union[float, NotGiven] = NOT_GIVEN... pypi.org - Signature changed
portkey_ai.api_resources.apis.audio.Translations.create
Was def create(self, *, file: FileTypes, model: str, prompt: Union[str, NotGiven] = NOT_GIVEN, temperature: Union[float, NotGiven] = NOT_GIVEN, **kwargs) -> Union[Translation, TranslationVerbose, str]; now def create(self, *, file... pypi.org - Signature changed
portkey_ai.api_resources.apis.batches.Batches.create
Was def create(self, *, completion_window: str, endpoint: str, input_file_id: str, metadata: Union[Optional[Dict[str, str]], NotGiven] = NOT_GIVEN, **kwargs) -> Batch; now def create(self, *, completion_window: str, endpoint: str... pypi.org - Signature changed
portkey_ai.api_resources.apis.batches.Batches.list
Was def list(self, *, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, **kwargs) -> BatchList; now def list(self, *, after: Union[str, Omit] = omit, limit: Union[int, Omit] = omit, **kwargs) -> BatchList. pypi.org - Signature changed
portkey_ai.api_resources.apis.beta_chat.BetaCompletions.parse
Was def parse(self, *, messages: Any, model: Union[str, Any] = 'portkey-default', response_format: Union[Any, NotGiven] = NOT_GIVEN, tools: Union[Any, NotGiven] = NOT_GIVEN, audio: Union[Any, NotGiven] = NOT_GIVEN, max_completion_tokens... pypi.org - Signature changed
portkey_ai.api_resources.apis.beta_chat.BetaCompletions.stream
Was def stream(self, *, messages: Any, model: Union[str, Any] = 'portkey-default', response_format: Union[Any, NotGiven] = NOT_GIVEN, tools: Union[Any, NotGiven] = NOT_GIVEN, audio: Union[Any, NotGiven] = NOT_GIVEN, max_completion_tokens... pypi.org - Signature changed
portkey_ai.api_resources.apis.beta_realtime.TranscriptionSession.model_dump
Was def model_dump(self, *, mode: Literal['json', 'python'] | str = 'python', include: IncEx | None = None, exclude: IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none... pypi.org - Signature changed
portkey_ai.api_resources.apis.beta_realtime.TranscriptionSession.model_dump_json
Was def model_dump_json(self, *, indent: int | None = None, include: IncEx | None = None, exclude: IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False... pypi.org - Signature changed
portkey_ai.api_resources.apis.containers.Containers.create
Was def create(self, *, name: str, expires_after: Union[container_create_params.ExpiresAfter, NotGiven] = NOT_GIVEN, file_ids: Union[List[str], NotGiven] = NOT_GIVEN, **kwargs) -> ContainerCreateResponse; now def create(self, *, name: str... pypi.org - Signature changed
portkey_ai.api_resources.apis.containers.Containers.list
Was def list(self, *, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[Literal['asc', 'desc'], NotGiven] = NOT_GIVEN, **kwargs) -> ContainerListResponse; now def list(self, *, after: Union[str... pypi.org - Signature changed
portkey_ai.api_resources.apis.containers.ContainersFiles.create
Was def create(self, container_id: str, *, file: Union[FileTypes, NotGiven] = NOT_GIVEN, file_id: Union[str, NotGiven] = NOT_GIVEN, **kwargs) -> FileCreateResponse; now def create(self, container_id: str, *, file: Union[FileTypes, Omit] =... pypi.org - Signature changed
portkey_ai.api_resources.apis.containers.ContainersFiles.list
Was def list(self, container_id: str, *, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[Literal['asc', 'desc'], NotGiven] = NOT_GIVEN, **kwargs) -> FileListResponse; now def list(self... pypi.org - Signature changed
portkey_ai.api_resources.apis.conversations.Conversations.create
Was def create(self, *, items: Union[Optional[Iterable[ResponseInputItemParam]], NotGiven] = NOT_GIVEN, metadata: Union[Optional[Metadata], NotGiven] = NOT_GIVEN, extra_headers: Optional[Headers] = None, extra_query: Optional[Query] =... pypi.org - Signature changed
portkey_ai.api_resources.apis.conversations.ConversationsItems.create
Was def create(self, conversation_id: str, *, items: Iterable[ResponseInputItemParam], include: Union[List[ResponseIncludable], NotGiven] = NOT_GIVEN, extra_headers: Optional[Headers] = None, extra_query: Optional[Query] = None... pypi.org - Signature changed
portkey_ai.api_resources.apis.conversations.ConversationsItems.list
Was def list(self, conversation_id: str, *, after: Union[str, NotGiven] = NOT_GIVEN, include: Union[List[ResponseIncludable], NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[NotGiven, Literal['asc', 'desc']] =... pypi.org - Signature changed
portkey_ai.api_resources.apis.conversations.ConversationsItems.retrieve
Was def retrieve(self, item_id: str, *, conversation_id: str, include: Union[List[ResponseIncludable], NotGiven] = NOT_GIVEN, extra_headers: Optional[Headers] = None, extra_query: Optional[Query] = None, extra_body: Optional[Body] = None... pypi.org - Signature changed
portkey_ai.api_resources.apis.evals.Evals.create
Was def create(self, *, data_source_config: Any, testing_criteria: Any, metadata: Union[Optional[Metadata], NotGiven] = NOT_GIVEN, name: Union[str, NotGiven] = NOT_GIVEN, **kwargs) -> EvalCreateResponse; now def create(self, *... pypi.org - Signature changed
portkey_ai.api_resources.apis.evals.Evals.list
Was def list(self, *, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[Literal['asc', 'desc'], NotGiven] = NOT_GIVEN, order_by: Union[Literal['created_at', 'updated_at'], NotGiven] = NOT_GIVEN... pypi.org - Signature changed
portkey_ai.api_resources.apis.evals.Evals.update
Was def update(self, eval_id: str, *, metadata: Union[Optional[Metadata], NotGiven] = NOT_GIVEN, name: Union[str, NotGiven] = NOT_GIVEN, **kwargs) -> EvalUpdateResponse; now def update(self, eval_id: str, *, metadata... pypi.org - Signature changed
portkey_ai.api_resources.apis.evals.EvalsRuns.create
Was def create(self, eval_id: str, *, data_source: Any, metadata: Union[Optional[Metadata], NotGiven] = NOT_GIVEN, name: Union[str, NotGiven] = NOT_GIVEN, **kwargs) -> RunCreateResponse; now def create(self, eval_id: str, *, data_source... pypi.org - Signature changed
portkey_ai.api_resources.apis.evals.EvalsRuns.list
Was def list(self, eval_id: str, *, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[Literal['asc', 'desc'], NotGiven] = NOT_GIVEN, status: Union[Literal['queued', 'in_progress', 'completed'... pypi.org - Signature changed
portkey_ai.api_resources.apis.evals.OutputItems.list
Was def list(self, run_id: str, *, eval_id: str, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[Literal['asc', 'desc'], NotGiven] = NOT_GIVEN, status: Union[Literal['fail', 'pass'], NotGiven]... pypi.org - Signature changed
portkey_ai.api_resources.apis.fine_tuning.Checkpoints.list
Was def list(self, fine_tuning_job_id: str, *, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, **kwargs) -> FineTuningJobCheckpointList; now def list(self, fine_tuning_job_id: str, *, after: Union[str... pypi.org - Signature changed
portkey_ai.api_resources.apis.fine_tuning.Graders.run
Was def run(self, *, grader: grader_run_params.Grader, model_sample: str, item: Union[object, NotGiven] = NOT_GIVEN, **kwargs) -> GraderRunResponse; now def run(self, *, grader: grader_run_params.Grader, model_sample: str, item... pypi.org - Signature changed
portkey_ai.api_resources.apis.fine_tuning.Jobs.create
Was def create(self, *, model: str, training_file: str, hyperparameters: Union[job_create_params.Hyperparameters, NotGiven] = NOT_GIVEN, integrations: Union[Optional[Iterable[job_create_params.Integration]], NotGiven] = NOT_GIVEN, method... pypi.org - Signature changed
portkey_ai.api_resources.apis.fine_tuning.Jobs.list
Was def list(self, *, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, **kwargs) -> FineTuningJobList; now def list(self, *, after: Union[str, Omit] = omit, limit: Union[int, Omit] = omit, **kwargs) ->... pypi.org - Signature changed
portkey_ai.api_resources.apis.fine_tuning.Jobs.list_events
Was def list_events(self, fine_tuning_job_id: str, *, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, **kwargs) -> FineTuningJobEventList; now def list_events(self, fine_tuning_job_id: str, *, after... pypi.org - Signature changed
portkey_ai.api_resources.apis.fine_tuning.Permissions.retrieve
Was def retrieve(self, fine_tuned_model_checkpoint: str, *, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[Literal['ascending', 'descending'], NotGiven] = NOT_GIVEN, project_id: Union[str... pypi.org - Signature changed
portkey_ai.api_resources.apis.images.Images.create_variation
Was def create_variation(self, *, image, n: Union[int, NotGiven] = NOT_GIVEN, model: Union[str, NotGiven] = NOT_GIVEN, response_format: Union[str, NotGiven] = NOT_GIVEN, size: Union[str, NotGiven] = NOT_GIVEN, user: Union[str, NotGiven] =... pypi.org - Signature changed
portkey_ai.api_resources.apis.images.Images.edit
Was def edit(self, *, image: Union[FileTypes, List[FileTypes]], prompt: str, background: Union[Optional[str], NotGiven] = NOT_GIVEN, input_fidelity: Union[Optional[str], NotGiven] = NOT_GIVEN, mask: Union[FileTypes, NotGiven] = NOT_GIVEN... pypi.org - Signature changed
portkey_ai.api_resources.apis.images.Images.generate
Was def generate(self, *, prompt: str, background: Union[Optional[str], NotGiven] = NOT_GIVEN, model: Union[str, NotGiven] = NOT_GIVEN, moderation: Union[Optional[str], NotGiven] = NOT_GIVEN, n: Union[Optional[int], NotGiven] = NOT_GIVEN... pypi.org - Signature changed
portkey_ai.api_resources.apis.main_files.MainFiles.list
Was def list(self, *, purpose: Union[str, NotGiven] = NOT_GIVEN, after: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[Any, NotGiven] = NOT_GIVEN, **kwargs) -> FileList; now def list(self, *... pypi.org - Signature changed
portkey_ai.api_resources.apis.main_realtime.RealtimeConnectionManager.__init__
Was def __init__(self, *, client: OpenAI, model: str, extra_query: Query, extra_headers: Headers, websocket_connection_options: WebsocketConnectionOptions) -> None; now def __init__(self, *, client: OpenAI, call_id: str | Omit = omit... pypi.org - Signature changed
portkey_ai.api_resources.apis.moderations.Moderations.create
Was def create(self, *, input: Union[str, List[str], Iterable[Any]], model: Union[str, NotGiven] = NOT_GIVEN, **kwargs) -> ModerationCreateResponse; now def create(self, *, input: Union[str, List[str], Iterable[Any]], model: Union[str... pypi.org - Signature changed
portkey_ai.api_resources.apis.responses.InputItems.list
Was def list(self, response_id: str, *, after: Union[str, NotGiven] = NOT_GIVEN, include: Union[List[ResponseIncludable], NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[Literal['asc', 'desc'], NotGiven] =... pypi.org - Signature changed
portkey_ai.api_resources.apis.responses.Responses.create
Was def create(self, *, input: Union[str, ResponseInputParam, NotGiven] = NOT_GIVEN, model: Union[ResponsesModel, NotGiven] = NOT_GIVEN, include: Union[Optional[List[ResponseIncludable]], NotGiven] = NOT_GIVEN, instructions... pypi.org - Signature changed
portkey_ai.api_resources.apis.responses.Responses.parse
Was def parse(self, *, input: Union[str, ResponseInputParam, NotGiven] = NOT_GIVEN, model: Union[str, ChatModel, NotGiven] = NOT_GIVEN, text_format: Union[type[TextFormatT], NotGiven] = NOT_GIVEN, tools: Union[Iterable[ParseableToolParam]... pypi.org - Signature changed
portkey_ai.api_resources.apis.responses.Responses.retrieve
Was def retrieve(self, response_id: str, *, include: Union[List[ResponseIncludable], NotGiven] = NOT_GIVEN, include_obfuscation: Union[bool, NotGiven] = NOT_GIVEN, starting_after: Union[int, NotGiven] = NOT_GIVEN, **kwargs) ->... pypi.org - Signature changed
portkey_ai.api_resources.apis.responses.Responses.stream
Was def stream(self, *, input: Union[str, ResponseInputParam], model: Union[str, ChatModel], text_format: Union[type[TextFormatT], NotGiven] = NOT_GIVEN, tools: Union[Iterable[ParseableToolParam], NotGiven] = NOT_GIVEN, include... pypi.org - Signature changed
portkey_ai.api_resources.apis.responses.ResponseStreamManager.__init__
Was def __init__(self, api_request: Callable[[], Stream[RawResponseStreamEvent]], *, text_format: type[TextFormatT] | NotGiven, input_tools: Iterable[ToolParam] | NotGiven, starting_after: int | None) -> None; now def __init__(self... pypi.org - Signature changed
portkey_ai.api_resources.apis.threads.Messages.create
Was def create(self, thread_id, *, content: Union[str, Any], role: Any, attachments: Union[Any, NotGiven] = NOT_GIVEN, metadata: Union[Optional[Metadata], NotGiven] = NOT_GIVEN, **kwargs) -> ThreadMessage; now def create(self, thread_id... pypi.org - Signature changed
portkey_ai.api_resources.apis.threads.Messages.list
Was def list(self, thread_id, *, after: Union[str, NotGiven] = NOT_GIVEN, before: Union[str, NotGiven] = NOT_GIVEN, limit: Union[int, NotGiven] = NOT_GIVEN, order: Union[NotGiven, Literal['asc', 'desc']] = NOT_GIVEN, run_id: Union[str... pypi.org - Signature changed
portkey_ai.api_resources.apis.threads.Messages.update
Was def update(self, thread_id, message_id, *, metadata: Union[Optional[Metadata], NotGiven] = NOT_GIVEN, **kwargs) -> ThreadMessage; now def update(self, thread_id, message_id, *, metadata: Union[Optional[Metadata], Omit] = omit... pypi.org - Signature changed
portkey_ai.api_resources.apis.threads.Runs.create
Was def create(self, thread_id: str, *, assistant_id: str, stream: Union[bool, NotGiven] = NOT_GIVEN, **kwargs) -> Union[Run, Iterator[AssistantStreamEvent]]; now def create(self, thread_id: str, *, assistant_id: str, stream: Union[bool... pypi.org
And 108 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.