Skip to content

Commit

Permalink
Merge pull request #26 from cohere-ai/fern-bot/08-30-2024-1147AM
Browse files Browse the repository at this point in the history
  • Loading branch information
mkozakov committed Aug 30, 2024
2 parents ae2531b + 904c7ec commit fe9906b
Show file tree
Hide file tree
Showing 10 changed files with 391 additions and 217 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.cohere'
artifactId = 'cohere-java'
version = '1.2.0'
version = '1.3.0'
from components.java
pom {
name = 'cohere'
Expand Down
54 changes: 24 additions & 30 deletions src/main/java/com/cohere/api/Cohere.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,22 +167,20 @@ public NonStreamedChatResponse chat(ChatRequest request, RequestOptions requestO
}

/**
* <blockquote>
* 🚧 Warning
* <p>This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the <a href="/docs/migrating-from-cogenerate-to-cochat">migration guide</a> to start using the Chat API.</p>
* </blockquote>
* <p>Generates realistic text conditioned on a given input.</p>
* <p>&lt;Warning&gt;
* This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
* &lt;/Warning&gt;
* Generates realistic text conditioned on a given input.</p>
*/
public Iterable<GenerateStreamedResponse> generateStream(GenerateStreamRequest request) {
return generateStream(request, null);
}

/**
* <blockquote>
* 🚧 Warning
* <p>This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the <a href="/docs/migrating-from-cogenerate-to-cochat">migration guide</a> to start using the Chat API.</p>
* </blockquote>
* <p>Generates realistic text conditioned on a given input.</p>
* <p>&lt;Warning&gt;
* This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
* &lt;/Warning&gt;
* Generates realistic text conditioned on a given input.</p>
*/
public Iterable<GenerateStreamedResponse> generateStream(
GenerateStreamRequest request, RequestOptions requestOptions) {
Expand Down Expand Up @@ -224,22 +222,20 @@ public Iterable<GenerateStreamedResponse> generateStream(
}

/**
* <blockquote>
* 🚧 Warning
* <p>This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the <a href="/docs/migrating-from-cogenerate-to-cochat">migration guide</a> to start using the Chat API.</p>
* </blockquote>
* <p>Generates realistic text conditioned on a given input.</p>
* <p>&lt;Warning&gt;
* This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
* &lt;/Warning&gt;
* Generates realistic text conditioned on a given input.</p>
*/
public Generation generate(GenerateRequest request) {
return generate(request, null);
}

/**
* <blockquote>
* 🚧 Warning
* <p>This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the <a href="/docs/migrating-from-cogenerate-to-cochat">migration guide</a> to start using the Chat API.</p>
* </blockquote>
* <p>Generates realistic text conditioned on a given input.</p>
* <p>&lt;Warning&gt;
* This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
* &lt;/Warning&gt;
* Generates realistic text conditioned on a given input.</p>
*/
public Generation generate(GenerateRequest request, RequestOptions requestOptions) {
HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
Expand Down Expand Up @@ -426,22 +422,20 @@ public ClassifyResponse classify(ClassifyRequest request, RequestOptions request
}

/**
* <blockquote>
* 🚧 Warning
* <p>This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the <a href="/docs/migrating-from-cogenerate-to-cochat">migration guide</a> to start using the Chat API.</p>
* </blockquote>
* <p>Generates a summary in English for a given text.</p>
* <p>&lt;Warning&gt;
* This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
* &lt;/Warning&gt;
* Generates a summary in English for a given text.</p>
*/
public SummarizeResponse summarize(SummarizeRequest request) {
return summarize(request, null);
}

/**
* <blockquote>
* 🚧 Warning
* <p>This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the <a href="/docs/migrating-from-cogenerate-to-cochat">migration guide</a> to start using the Chat API.</p>
* </blockquote>
* <p>Generates a summary in English for a given text.</p>
* <p>&lt;Warning&gt;
* This API is marked as &quot;Legacy&quot; and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
* &lt;/Warning&gt;
* Generates a summary in English for a given text.</p>
*/
public SummarizeResponse summarize(SummarizeRequest request, RequestOptions requestOptions) {
HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/cohere/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private ClientOptions(
"X-Fern-SDK-Name",
"com.cohere.fern:api-sdk",
"X-Fern-SDK-Version",
"1.2.0",
"1.3.0",
"X-Fern-Language",
"JAVA"));
this.headerSuppliers = headerSuppliers;
Expand Down
Loading

0 comments on commit fe9906b

Please sign in to comment.