Method: OpenApiOpenAIClient::FilesApi#retrieve_file

Defined in:
lib/openapi_openai/api/files_api.rb

#retrieve_file(file_id, opts = {}) ⇒ OpenAIFile

Returns information about a specific file.

Parameters:

  • file_id (String)

    The ID of the file to use for this request.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



285
286
287
288
# File 'lib/openapi_openai/api/files_api.rb', line 285

def retrieve_file(file_id, opts = {})
  data, _status_code, _headers = retrieve_file_with_http_info(file_id, opts)
  data
end