Skip to content

Commit

Permalink
Synk version 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobaccan committed Apr 21, 2024
1 parent 2fcf762 commit c75e3d6
Show file tree
Hide file tree
Showing 61 changed files with 343 additions and 124 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This project consists of 3 modules:

## Current version

Current library version is align to 1.5.1 version of Cheshire Cat API.
Current library version is align to 1.5.2 version of Cheshire Cat API.

## CheshireCat

Expand Down
2 changes: 1 addition & 1 deletion cheshire-cat-java-client-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>it.baccan</groupId>
<artifactId>cheshire-cat-java-client-generator</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
4 changes: 2 additions & 2 deletions cheshire-cat-java-client-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>it.baccan</groupId>
<artifactId>cheshire-cat-java-client-test</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>it.baccan</groupId>
<artifactId>cheshire-cat-java-client</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4d8f9485b300737bb3256ab363ef47671bbb614fe73e2941f2d008a364e995ac
8b2bf4a7f53820e2c16853f7c6d339b7964feb58fd619c9c41f789a2f0163446
9 changes: 5 additions & 4 deletions cheshire-cat-java-client/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# cheshire-cat-java-client

�Y~� Cheshire-Cat API
- API version: 1.5.1
- API version: 1.5.2
- Generator version: 7.4.0

Production ready AI assistant framework
Expand Down Expand Up @@ -40,7 +40,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>it.baccan</groupId>
<artifactId>cheshire-cat-java-client</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -56,7 +56,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "it.baccan:cheshire-cat-java-client:1.5.1"
implementation "it.baccan:cheshire-cat-java-client:1.5.2"
}
```

Expand All @@ -70,7 +70,7 @@ mvn clean package

Then manually install the following JARs:

* `target/cheshire-cat-java-client-1.5.1.jar`
* `target/cheshire-cat-java-client-1.5.2.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -149,6 +149,7 @@ Class | Method | HTTP request | Description
*SettingsApi* | [**getSettings**](docs/SettingsApi.md#getSettings) | **GET** /settings/ | Get Settings
*SettingsApi* | [**updateSetting**](docs/SettingsApi.md#updateSetting) | **PUT** /settings/{settingId} | Update Setting
*StatusApi* | [**home**](docs/StatusApi.md#home) | **GET** / | Home
*StatusApi* | [**messageWithCat**](docs/StatusApi.md#messageWithCat) | **POST** /message | Message With Cat


## Documentation for Models
Expand Down
54 changes: 45 additions & 9 deletions cheshire-cat-java-client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.1.0
info:
description: Production ready AI assistant framework
title: �Y~� Cheshire-Cat API
version: 1.5.1
version: 1.5.2
x-logo:
url: https://cheshirecat.ai/wp-content/uploads/2023/10/Logo-Cheshire-Cat.svg
servers:
Expand All @@ -24,6 +24,37 @@ paths:
tags:
- Status
x-accepts: application/json
/message:
post:
description: Get a response from the Cat
operationId: message_with_cat
requestBody:
content:
application/json:
schema:
default:
text: hello!
title: Payload
type: object
responses:
"200":
content:
application/json:
schema:
title: Response Message With Cat
type: object
description: Successful Response
"422":
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Message With Cat
tags:
- Status
x-content-type: application/json
x-accepts: application/json
/settings/:
get:
description: Get the entire list of settings available in the database
Expand Down Expand Up @@ -235,9 +266,10 @@ paths:
content:
application/json:
schema:
default:
openai_api_key: your-key-here
title: Payload
type: object
required: true
responses:
"200":
content:
Expand Down Expand Up @@ -320,9 +352,10 @@ paths:
content:
application/json:
schema:
default:
openai_api_key: your-key-here
title: Payload
type: object
required: true
responses:
"200":
content:
Expand Down Expand Up @@ -410,9 +443,10 @@ paths:
content:
application/json:
schema:
default:
url: https://github.com/plugin-dev-account/plugin-repo
title: Payload
type: object
required: true
responses:
"200":
content:
Expand Down Expand Up @@ -526,9 +560,11 @@ paths:
content:
application/json:
schema:
default:
setting_a: some value
setting_b: another value
title: Payload
type: object
required: true
responses:
"200":
content:
Expand Down Expand Up @@ -981,13 +1017,13 @@ components:
title: File
type: string
chunk_size:
default: 512
default: 256
description: Maximum length of each chunk after the document is split (in
characters)
title: Chunk Size
type: integer
chunk_overlap:
default: 128
default: 64
description: Chunk overlap (in characters)
title: Chunk Overlap
type: integer
Expand All @@ -1010,13 +1046,13 @@ components:
title: Url
type: string
chunk_size:
default: 512
default: 256
description: Maximum length of each chunk after the document is split (in
characters)
title: Chunk Size
type: integer
chunk_overlap:
default: 128
default: 64
description: Chunk overlap (in characters)
title: Chunk Overlap
type: integer
Expand Down
2 changes: 1 addition & 1 deletion cheshire-cat-java-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'it.baccan'
version = '1.5.1'
version = '1.5.2'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion cheshire-cat-java-client/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "it.baccan",
name := "cheshire-cat-java-client",
version := "1.5.1",
version := "1.5.2",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion cheshire-cat-java-client/docs/EmbedderApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **languageEmbedderName** | **String**| | |
| **body** | **Object**| | |
| **body** | **Object**| | [optional] |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion cheshire-cat-java-client/docs/LargeLanguageModelApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **languageModelName** | **String**| | |
| **body** | **Object**| | |
| **body** | **Object**| | [optional] |

### Return type

Expand Down
4 changes: 2 additions & 2 deletions cheshire-cat-java-client/docs/PluginsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public class Example {

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **body** | **Object**| | |
| **body** | **Object**| | [optional] |

### Return type

Expand Down Expand Up @@ -558,7 +558,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **pluginId** | **String**| | |
| **body** | **Object**| | |
| **body** | **Object**| | [optional] |

### Return type

Expand Down
8 changes: 4 additions & 4 deletions cheshire-cat-java-client/docs/RabbitHoleApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public class Example {

RabbitHoleApi apiInstance = new RabbitHoleApi(defaultClient);
File _file = new File("/path/to/file"); // File |
Integer chunkSize = 512; // Integer | Maximum length of each chunk after the document is split (in characters)
Integer chunkOverlap = 128; // Integer | Chunk overlap (in characters)
Integer chunkSize = 256; // Integer | Maximum length of each chunk after the document is split (in characters)
Integer chunkOverlap = 64; // Integer | Chunk overlap (in characters)
try {
Object result = apiInstance.uploadFile(_file, chunkSize, chunkOverlap);
System.out.println(result);
Expand All @@ -113,8 +113,8 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **_file** | **File**| | |
| **chunkSize** | **Integer**| Maximum length of each chunk after the document is split (in characters) | [optional] [default to 512] |
| **chunkOverlap** | **Integer**| Chunk overlap (in characters) | [optional] [default to 128] |
| **chunkSize** | **Integer**| Maximum length of each chunk after the document is split (in characters) | [optional] [default to 256] |
| **chunkOverlap** | **Integer**| Chunk overlap (in characters) | [optional] [default to 64] |

### Return type

Expand Down
64 changes: 64 additions & 0 deletions cheshire-cat-java-client/docs/StatusApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**home**](StatusApi.md#home) | **GET** / | Home |
| [**messageWithCat**](StatusApi.md#messageWithCat) | **POST** /message | Message With Cat |


<a id="home"></a>
Expand Down Expand Up @@ -65,3 +66,66 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Successful Response | - |

<a id="messageWithCat"></a>
# **messageWithCat**
> Object messageWithCat(body)
Message With Cat

Get a response from the Cat

### Example
```java
// Import classes:
import it.baccan.cheshirecat.ApiClient;
import it.baccan.cheshirecat.ApiException;
import it.baccan.cheshirecat.Configuration;
import it.baccan.cheshirecat.models.*;
import it.baccan.cheshirecat.service.StatusApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");

StatusApi apiInstance = new StatusApi(defaultClient);
Object body = null; // Object |
try {
Object result = apiInstance.messageWithCat(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StatusApi#messageWithCat");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **body** | **Object**| | [optional] |

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful Response | - |
| **422** | Validation Error | - |

2 changes: 1 addition & 1 deletion cheshire-cat-java-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>cheshire-cat-java-client</artifactId>
<packaging>jar</packaging>
<name>cheshire-cat-java-client</name>
<version>1.5.1</version>
<version>1.5.2</version>
<url>https://github.com/openapitools/openapi-generator</url>
<description>OpenAPI Java</description>
<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* �Y~� Cheshire-Cat API
* Production ready AI assistant framework
*
* The version of the OpenAPI document: 1.5.1
* The version of the OpenAPI document: 1.5.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* �Y~� Cheshire-Cat API
* Production ready AI assistant framework
*
* The version of the OpenAPI document: 1.5.1
* The version of the OpenAPI document: 1.5.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -139,7 +139,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/1.5.1/java");
setUserAgent("OpenAPI-Generator/1.5.2/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
Loading

0 comments on commit c75e3d6

Please sign in to comment.