😸 Cheshire-Cat API
-
API version: 1.7.1
-
Generator version: 7.10.0
Production ready AI assistant framework
Automatically generated by the OpenAPI Generator
Building the API client library requires:
- Java 1.8+
- Maven (3.8.3+)/Gradle (7.2+)
To install the API client library to your local Maven repository, simply execute:
mvn clean install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deploy
Refer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>it.baccan</groupId>
<artifactId>cheshire-cat-java-client</artifactId>
<version>1.7.1</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
repositories {
mavenCentral() // Needed if the 'cheshire-cat-java-client' jar has been published to maven central.
mavenLocal() // Needed if the 'cheshire-cat-java-client' jar has been published to the local maven repo.
}
dependencies {
implementation "it.baccan:cheshire-cat-java-client:1.7.1"
}
At first generate the JAR by executing:
mvn clean package
Then manually install the following JARs:
target/cheshire-cat-java-client-1.7.1.jar
target/lib/*.jar
To add a HTTP proxy for the API client, use ClientConfig
:
import org.glassfish.jersey.apache.connector.ApacheConnectorProvider;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
import it.baccan.cheshirecat.*;
import it.baccan.cheshirecat.service.AuthHandlerApi;
...
ApiClient defaultClient = Configuration.getDefaultApiClient();
ClientConfig clientConfig = defaultClient.getClientConfig();
clientConfig.connectorProvider(new ApacheConnectorProvider());
clientConfig.property(ClientProperties.PROXY_URI, "http://proxy_url_here");
clientConfig.property(ClientProperties.PROXY_USERNAME, "proxy_username");
clientConfig.property(ClientProperties.PROXY_PASSWORD, "proxy_password");
defaultClient.setClientConfig(clientConfig);
AuthHandlerApi apiInstance = new AuthHandlerApi(defaultClient);
Please follow the installation instruction and execute the following Java code:
import it.baccan.cheshirecat.*;
import it.baccan.cheshirecat.auth.*;
import it.baccan.cheshirecat.model.*;
import it.baccan.cheshirecat.service.AuthHandlerApi;
public class AuthHandlerApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
AuthHandlerApi apiInstance = new AuthHandlerApi(defaultClient);
String authHandlerName = "authHandlerName_example"; // String |
try {
Object result = apiInstance.getAuthHandlerSetting(authHandlerName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthHandlerApi#getAuthHandlerSetting");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
AuthHandlerApi | getAuthHandlerSetting | GET /auth_handler/settings/{auth_handler_name} | Get Auth Handler Setting |
AuthHandlerApi | getAuthHandlerSettings | GET /auth_handler/settings | Get Auth Handler Settings |
AuthHandlerApi | upsertAuthenticatorSetting | PUT /auth_handler/settings/{auth_handler_name} | Upsert Authenticator Setting |
EmbedderApi | getEmbedderSettings | GET /embedder/settings/{languageEmbedderName} | Get Embedder Settings |
EmbedderApi | getEmbeddersSettings | GET /embedder/settings | Get Embedders Settings |
EmbedderApi | upsertEmbedderSetting | PUT /embedder/settings/{languageEmbedderName} | Upsert Embedder Setting |
LargeLanguageModelApi | getLlmSettings | GET /llm/settings/{languageModelName} | Get Llm Settings |
LargeLanguageModelApi | getLlmsSettings | GET /llm/settings | Get Llms Settings |
LargeLanguageModelApi | upsertLlmSetting | PUT /llm/settings/{languageModelName} | Upsert Llm Setting |
MemoryApi | createMemoryPoint | POST /memory/collections/{collection_id}/points | Create Memory Point |
MemoryApi | deleteMemoryPoint | DELETE /memory/collections/{collection_id}/points/{point_id} | Delete Memory Point |
MemoryApi | deleteMemoryPointsByMetadata | DELETE /memory/collections/{collection_id}/points | Delete Memory Points By Metadata |
MemoryApi | getCollections | GET /memory/collections | Get Collections |
MemoryApi | getConversationHistory | GET /memory/conversation_history | Get Conversation History |
MemoryApi | recallMemoriesFromText | GET /memory/recall | Recall Memories From Text |
MemoryApi | wipeCollections | DELETE /memory/collections | Wipe Collections |
MemoryApi | wipeConversationHistory | DELETE /memory/conversation_history | Wipe Conversation History |
MemoryApi | wipeSingleCollection | DELETE /memory/collections/{collection_id} | Wipe Single Collection |
PluginsApi | deletePlugin | DELETE /plugins/{plugin_id} | Delete Plugin |
PluginsApi | getAvailablePlugins | GET /plugins/ | Get Available Plugins |
PluginsApi | getPluginDetails | GET /plugins/{plugin_id} | Get Plugin Details |
PluginsApi | getPluginSettings | GET /plugins/settings/{plugin_id} | Get Plugin Settings |
PluginsApi | getPluginsSettings | GET /plugins/settings | Get Plugins Settings |
PluginsApi | installPlugin | POST /plugins/upload | Install Plugin |
PluginsApi | installPluginFromRegistry | POST /plugins/upload/registry | Install Plugin From Registry |
PluginsApi | togglePlugin | PUT /plugins/toggle/{plugin_id} | Toggle Plugin |
PluginsApi | upsertPluginSettings | PUT /plugins/settings/{plugin_id} | Upsert Plugin Settings |
RabbitHoleApi | getAllowedMimetypes | GET /rabbithole/allowed-mimetypes | Get Allowed Mimetypes |
RabbitHoleApi | uploadFile | POST /rabbithole/ | Upload File |
RabbitHoleApi | uploadMemory | POST /rabbithole/memory | Upload Memory |
RabbitHoleApi | uploadUrl | POST /rabbithole/web | Upload Url |
SettingsApi | createSetting | POST /settings/ | Create Setting |
SettingsApi | deleteSetting | DELETE /settings/{settingId} | Delete Setting |
SettingsApi | getSetting | GET /settings/{settingId} | Get Setting |
SettingsApi | getSettings | GET /settings/ | Get Settings |
SettingsApi | updateSetting | PUT /settings/{settingId} | Update Setting |
StatusApi | home | GET / | Home |
StatusApi | messageWithCat | POST /message | Message With Cat |
UserAuthApi | authToken | POST /auth/token | Auth Token |
UserAuthApi | getAvailablePermissions | GET /auth/available-permissions | Get Available Permissions |
UsersApi | createUser | POST /users/ | Create User |
UsersApi | deleteUser | DELETE /users/{user_id} | Delete User |
UsersApi | readUser | GET /users/{user_id} | Read User |
UsersApi | readUsers | GET /users/ | Read Users |
UsersApi | updateUser | PUT /users/{user_id} | Update User |
- AuthPermission
- AuthResource
- CatMessage
- CatMessageWhy
- ChunkOverlap
- ChunkSize
- EmbedderModelInteraction
- HTTPValidationError
- JWTResponse
- LLMModelInteraction
- MemoryPoint
- MemoryPointBase
- MessageWhy
- ModelInteractionsInner
- SettingBody
- UploadURLConfig
- UserCreate
- UserCredentials
- UserResponse
- UserUpdate
- ValidationError
- ValidationErrorLocInner
- Value
Endpoints do not require authorization.
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.