INNER CODE UNIT · Java

create

sashirestela/simple-openai · src/main/java/io/github/sashirestela/openai/OpenAIBeta2.java:158

        default CompletableFuture<Thread> create() {
            return create(ThreadRequest.builder().build());
        }

        /**
         * Retrieves a thread.
         * 
         * @param threadId The ID of the thread to retrieve.
         * @return The thread object matching the specified ID.
         */
        @GET("/{threadId}")
        CompletableFuture<Thread> getOne(@Path("threadId") String threadId);

        /**
         * Modifies a thread.
         * 
         * @param threadId The ID of the thread to modify.
         * @param request  The modification request.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…