Packages

class Live extends Files

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Live
  2. Files
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Live(client: Client, baseURL: URL, apiKey: Secret, boundary: Boundary)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def createFile(body: CreateFileRequest): ZIO[Any, OpenAIFailure, OpenAIFile]

    Upload a file that can be used across various endpoints/features.

    Upload a file that can be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please [contact us](https://help.openai.com/) if you need to increase the storage limit.

    Definition Classes
    LiveFiles
  7. def createFile(file: File, purpose: String): ZIO[Any, OpenAIFailure, OpenAIFile]

    Upload a file that can be used across various endpoints/features.

    Upload a file that can be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please [contact us](https://help.openai.com/) if you need to increase the storage limit.

    file

    The file object (not file name) to be uploaded. If the purpose is set to "fine-tune", the file will be used for fine-tuning.

    purpose

    The intended purpose of the uploaded file. Use "fine-tune" for [fine-tuning](/docs/api-reference/fine-tuning). This allows us to validate the format of the uploaded file is correct for fine-tuning.

    Definition Classes
    Files
  8. def deleteFile(file_id: String): ZIO[Any, OpenAIFailure, DeleteFileResponse]

    Delete a file.

    Delete a file.

    file_id

    The ID of the file to use for this request.

    Definition Classes
    LiveFiles
  9. def downloadFile(file_id: String): ZIO[Any, OpenAIFailure, String]

    Returns the contents of the specified file.

    Returns the contents of the specified file.

    file_id

    The ID of the file to use for this request.

    Definition Classes
    LiveFiles
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def listFiles(): ZIO[Any, OpenAIFailure, ListFilesResponse]

    Returns a list of files that belong to the user's organization.

    Returns a list of files that belong to the user's organization.

    Definition Classes
    LiveFiles
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def retrieveFile(file_id: String): ZIO[Any, OpenAIFailure, OpenAIFile]

    Returns information about a specific file.

    Returns information about a specific file.

    file_id

    The ID of the file to use for this request.

    Definition Classes
    LiveFiles
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Files

Inherited from AnyRef

Inherited from Any

Ungrouped