Package de.xima.fc.prompt.ms.impl.service.generic_oai.client.model
Contains the models for the input and output data when interacting with generic OAI services.
- Since:
- 8.5.0
-
Interface Summary Interface Description SerializableInputStreamSupplier A supplier forInputStreamthat is serializable and can throwIOException.TokenUsage Contains data regarding the tokens that were used by a request to the Generic OAI API. -
Class Summary Class Description AskInput Represents a question to be asked to a prompt service, consisting of a propt and optional file inputs.AskInput.Builder A builder forAskInput.AskOutput Represents a response from the "completions" endpoint of the Generic OAI service.AskOutput.Builder Builder class for constructing instances ofAskOutput.BaseOutput Base class for outputs from API calls, with the ability to represent errors.FileContent Represents a file to be sent to the generic OAI endpoint or a file that was received from it.ListModelsOutput The output of a list models request, contains a list of available model IDs.ListModelsOutput.Builder Builder forListModelsOutput.TestConnectionOutput The output of a list models request, contains a list of available model IDs.TestConnectionOutput.Builder Builder forTestConnectionOutput. -
Enum Summary Enum Description GenericOaiErrorType Enumeration of the possible types of errors that can occur when interacting with a generic OAI service. -
Exception Summary Exception Description BadStatusCodeException Exception thrown when a bad HTTP (e.g. 404 or 500 etc.) status code is received from the server.