INNER CODE UNIT · Java

createBase64

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

        default CompletableFuture<Embedding<EmbeddingBase64>> createBase64(@Body EmbeddingRequest embeddingRequest) {
            var request = embeddingRequest.withEncodingFormat(EncodingFormat.BASE64);
            return createBase64Primitive(request);
        }

    }

    /**
     * Files are used to upload documents that can be used with features like fine-tuning.
     * 
     * @see <a href= "https://platform.openai.com/docs/api-reference/files">OpenAI Files</a>
     */
    @Resource("/v1/files")
    interface Files {

        /**
         * Upload a file that contains document(s) to be used across various endpoints/features. Currently
         * *.jsonl files are supported only.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…