INNER CODE UNIT · Java

getList

sashirestela/simple-openai · src/main/java/io/github/sashirestela/openai/OpenAI.java:444

        default CompletableFuture<List<FileResponse>> getList(PurposeType purpose) {
            return getListPrimitive(purpose).thenApply(Generic::getData);
        }

        /**
         * Returns information about a specific file.
         * 
         * @param fileId The id of the file to use for this request.
         * @return Specific file.
         */
        @GET("/{fileId}")
        CompletableFuture<FileResponse> getOne(@Path("fileId") String fileId);

        /**
         * Returns a file content.
         * 
         * @param fileId The id of the file to use for this request.
         * @return Content of specific file.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…