Skip to content

Upgrading openai 0.11 to 0.12

Safe0.11.6 → 0.12.0New1

SafeUpgrade verdict

Only new features and fixes in this range.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: variable api_type
  • changed: constructor APIRequestor(key=…, api_base=…, api_version=…, organization=…) → constructor APIRequestor(key=…, api_base=…, api_type=…, api_version=…, organization=…)
  • changed: method APIResource.instance_url() → method APIResource.instance_url(operation=…)
  • added: field APIResource.azure_api_prefix
  • changed: static method EngineAPIResource.class_url(engine: Optional[str]=…) → static method EngineAPIResource.class_url(engine: Optional[str]=…, api_type: Optional[str]=…, api_version: Optional[str]=…)
  • changed: static method EngineAPIResource.create(api_key=…, api_base=…, request_id=…, api_version=…, organization=…, **params) → static method EngineAPIResource.create(api_key=…, api_base=…, api_type=…, request_id=…, api_version=…, organization=…, **params)
  • added: field EngineAPIResource.azure_api_prefix
  • added: class InvalidAPIType(OpenAIError)
  • changed: constructor OpenAIObject(id=…, api_key=…, api_version=…, organization=…, response_ms: Optional[int]=…, api_base=…, engine=…, **params) → constructor OpenAIObject(id=…, api_key=…, api_version=…, api_type=…, organization=…, response_ms: Optional[int]=…, api_base=…, engine=…, **params)
  • changed: method OpenAIObject.refresh_from(values, api_key=…, api_version=…, organization=…, response_ms: Optional[int]=…) → method OpenAIObject.refresh_from(values, api_key=…, api_version=…, api_type=…, organization=…, response_ms: Optional[int]=…)
  • added: property OpenAIObject.typed_api_type