Autobee_Docs - Kopya.resources.models#

Module Contents#

class Models(client)#

Bases: openai._resource.SyncAPIResource

property with_raw_response: ModelsWithRawResponse#
property with_streaming_response: ModelsWithStreamingResponse#
retrieve(model, *, extra_headers=None, extra_query=None, extra_body=None, timeout=NOT_GIVEN)#

Retrieves a model instance, providing basic information about the model such as the owner and permissioning.

Parameters:
  • extra_headers – Send extra headers

  • extra_query – Add additional query parameters to the request

  • extra_body – Add additional JSON properties to the request

  • timeout – Override the client-level default timeout for this request, in seconds

list(*, extra_headers=None, extra_query=None, extra_body=None, timeout=NOT_GIVEN)#

Lists the currently available models, and provides basic information about each one such as the owner and availability.

delete(model, *, extra_headers=None, extra_query=None, extra_body=None, timeout=NOT_GIVEN)#

Delete a fine-tuned model.

You must have the Owner role in your organization to delete a model.

Parameters:
  • extra_headers – Send extra headers

  • extra_query – Add additional query parameters to the request

  • extra_body – Add additional JSON properties to the request

  • timeout – Override the client-level default timeout for this request, in seconds

class AsyncModels(client)#

Bases: openai._resource.AsyncAPIResource

property with_raw_response: AsyncModelsWithRawResponse#
property with_streaming_response: AsyncModelsWithStreamingResponse#
async retrieve(model, *, extra_headers=None, extra_query=None, extra_body=None, timeout=NOT_GIVEN)#

Retrieves a model instance, providing basic information about the model such as the owner and permissioning.

Parameters:
  • extra_headers – Send extra headers

  • extra_query – Add additional query parameters to the request

  • extra_body – Add additional JSON properties to the request

  • timeout – Override the client-level default timeout for this request, in seconds

list(*, extra_headers=None, extra_query=None, extra_body=None, timeout=NOT_GIVEN)#

Lists the currently available models, and provides basic information about each one such as the owner and availability.

async delete(model, *, extra_headers=None, extra_query=None, extra_body=None, timeout=NOT_GIVEN)#

Delete a fine-tuned model.

You must have the Owner role in your organization to delete a model.

Parameters:
  • extra_headers – Send extra headers

  • extra_query – Add additional query parameters to the request

  • extra_body – Add additional JSON properties to the request

  • timeout – Override the client-level default timeout for this request, in seconds