Skip to content

About

Openai Java SDK managed by SDK Fabric

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

openai-java

This SDK is managed by the SDK Fabric project, a global infrastructure to automatically generate SDKs for every API.

You can find more information about this SDK at TypeHub: https://app.typehub.cloud/d/sdkfabric/openai

Usage

import org.sdkfabric.openai.Client;

Client client = Client::build("[access_token]");

// Creates a model response for the given chat conversation.
Completion_Response response = client.completions().create(new Completion_Request());

// Delete a stored chat completion.
Completion_Deleted response = client.completions().delete("completion_id");

// List stored Chat Completions.
Completion_Collection response = client.completions().getAll("after", 1, "model", "order");

// Creates a model response.
Response_Response response = client.responses().create(new Response_Request());

About

Openai Java SDK managed by SDK Fabric

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages