Skip to main content

ChatCompletionResponseApi

valkyrai-api

All URIs are relative to http://localhost:8080/v1

MethodHTTP requestDescription
deleteChatCompletionResponseDELETE ChatCompletionResponseApiDelete a ChatCompletionResponse.

deleteChatCompletionResponse

Void
deleteChatCompletionResponse(id)

Delete a ChatCompletionResponse.

Deletes a specific ChatCompletionResponse.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ChatCompletionResponseApi;


ChatCompletionResponseApi apiInstance = new ChatCompletionResponseApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the ChatCompletionResponse.

try {
Void result = apiInstance.deleteChatCompletionResponse(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChatCompletionResponseApi#deleteChatCompletionResponse");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the ChatCompletionResponse.

Return type

Void

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

getChatCompletionResponse

ChatCompletionResponse
getChatCompletionResponse(id)

Retrieve a single ChatCompletionResponse

Retrieves a single ChatCompletionResponse for a specific uid.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ChatCompletionResponseApi;


ChatCompletionResponseApi apiInstance = new ChatCompletionResponseApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the ChatCompletionResponse.

try {
ChatCompletionResponse result = apiInstance.getChatCompletionResponse(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChatCompletionResponseApi#getChatCompletionResponse");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the ChatCompletionResponse.

Return type

ChatCompletionResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getChatCompletionResponseList

ChatCompletionResponse
getChatCompletionResponseList()

Retrieve a list of ChatCompletionResponses

Retrieves a list of ChatCompletionResponses.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ChatCompletionResponseApi;


ChatCompletionResponseApi apiInstance = new ChatCompletionResponseApi();

try {
ChatCompletionResponse result = apiInstance.getChatCompletionResponseList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChatCompletionResponseApi#getChatCompletionResponseList");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ChatCompletionResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

postChatCompletionResponse

ChatCompletionResponse
postChatCompletionResponse(chatCompletionResponse)

Create a new ChatCompletionResponse

Creates a new ChatCompletionResponse.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ChatCompletionResponseApi;


ChatCompletionResponseApi apiInstance = new ChatCompletionResponseApi();
ChatCompletionResponse chatCompletionResponse = new ChatCompletionResponse(); // ChatCompletionResponse | ChatCompletionResponse details.

try {
ChatCompletionResponse result = apiInstance.postChatCompletionResponse(chatCompletionResponse);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChatCompletionResponseApi#postChatCompletionResponse");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
chatCompletionResponseChatCompletionResponseChatCompletionResponse details.

Return type

ChatCompletionResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

updateChatCompletionResponse

ChatCompletionResponse
updateChatCompletionResponse(idchatCompletionResponse)

Update an existing ChatCompletionResponse

Updates an existing ChatCompletionResponse.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ChatCompletionResponseApi;


ChatCompletionResponseApi apiInstance = new ChatCompletionResponseApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the ChatCompletionResponse.
ChatCompletionResponse chatCompletionResponse = new ChatCompletionResponse(); // ChatCompletionResponse | Updated ChatCompletionResponse details.

try {
ChatCompletionResponse result = apiInstance.updateChatCompletionResponse(idchatCompletionResponse);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChatCompletionResponseApi#updateChatCompletionResponse");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the ChatCompletionResponse.
chatCompletionResponseChatCompletionResponseUpdated ChatCompletionResponse details.

Return type

ChatCompletionResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Generated Version Details

~value
GENERATOR VERSIONcom.valkyrlabs:ValkyrAI API 1.0-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2025-04-09T20:27:13.881184-07:00[America/Los_Angeles]