Package io.github.stefanbratanov.jvm.openai
package io.github.stefanbratanov.jvm.openai
-
ClassDescriptionRepresents an assistant that can call the model and use tools.A list of Files attached to an assistant.Build assistants that can call models and use tools to perform tasks.Could be either
AssistantsResponseFormat.StringResponseFormat
orResponseFormat
Could be eitherAssistantsToolChoice.StringToolChoice
orToolChoice
An interface which is used to subscribe to assistant events emitted when streaming a Run.Turn audio into text or text into audio.Create large batches of API requests to run asynchronously.Given a list of messages comprising a conversation, the model will return a response.Represents a chat completion response returned by model, based on the provided input.A chat completion message generated by the model.Represents a streamed chunk of a chat completion response returned by model, based on the provided input.A chat completion delta generated by streamed model responses.An interface which is used to subscribe to streamed partial responsesDetails of the tool call theThreadRunStepDelta
was involved in.Represents an embedding vector returned by embedding endpoint.Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.Files are used to upload documents that can be used with features like Assistants and Fine-tuning.Manage fine-tuning jobs to tailor a model to your specific training data.The fine_tuning.job object represents a fine-tuning job that has been created through the API.The hyperparameters used for the fine-tuning jobThe fine_tuning.job.checkpoint object represents a model checkpoint for a fine-tuning job that is ready to use.Given a prompt and/or an input image, the model will generate a new image.Log probability informationCreate messages within threadsList and describe the various models available in the API.Represents if a given text input is potentially harmful.Given some input text, outputs if the model classifies it as potentially harmful across several categories.A class which when created using theOpenAI.newBuilder(String)
can be used to create clients based on the endpoints defined at API Reference - OpenAI APIExceptions will be based on Error Codes - OpenAI APIRepresents the latest OpenAI models.An object specifying the format that the model must output.Represents an execution run on a thread.A Thread represents a conversation.Represents a message within a thread.On an incomplete message, details about why the message is incomplete.Represents a message delta i.e.The delta containing the fields that have changed on the Message.A list of files attached to a message.Represents an execution run on a thread.Details on why the run is incomplete.The last error associated with this run.Details on the action required to continue the run.Represents a step in execution of a run.The last error associated with this run step.The details of the run step.Represents a run step delta i.e.The delta containing the fields that have changed on the run step.The details of the run step.Create threads that assistants can interact with.Specifies a tool the model should use.Thread Truncation ControlsUsage statistics