Skip to content

Commit

Permalink
fix: Rename coze-sdk to coze and release coze-api v0.1.4 with API fix…
Browse files Browse the repository at this point in the history
…es (#15)

- Rename 'coze-sdk' to 'coze' of the project
- Bump coze-api version to 0.1.4
- Fix various API issues in coze-api
  • Loading branch information
hanzeINGH authored Dec 19, 2024
1 parent 2369241 commit 9db6cbc
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 14 deletions.
6 changes: 3 additions & 3 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@

<parent>
<groupId>com.coze</groupId>
<artifactId>coze-sdk</artifactId>
<version>0.1.0-SNAPSHOT</version>
<artifactId>coze</artifactId>
<version>0.1.0</version>
</parent>

<artifactId>coze-api</artifactId>
<version>0.1.3</version>
<version>0.1.4</version>

<scm>
<connection>scm:git:git://github.com/coze-dev/coze-java.git</connection>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class CreateMessageReq extends BaseReq {
* The content of the message, supporting pure text, multimodal (mixed input of text, images, files),
* cards, and various types of content.
* */
@NonNull private String content;
private String content;

/*
* The type of message content.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public class ListMessageReq extends BaseReq {

/** The sorting method for the message list. */
@JsonProperty("order")
private String order;
@Builder.Default
private String order = Sort.DESC.getValue();

/** The ID of the Chat. */
@JsonProperty("chat_id")
Expand All @@ -47,8 +48,4 @@ public class ListMessageReq extends BaseReq {

@JsonProperty("bot_id")
private String botID;

@JsonProperty("order")
@Builder.Default
private Sort sort = Sort.DESC;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Workspace {
@JsonProperty("id")
private String id;
Expand Down
5 changes: 2 additions & 3 deletions example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<parent>
<groupId>com.coze</groupId>
<artifactId>coze-sdk</artifactId>
<version>0.1.0-SNAPSHOT</version>
<artifactId>coze</artifactId>
<version>0.1.0</version>
</parent>

<artifactId>coze-example</artifactId>
Expand All @@ -16,7 +16,6 @@
<dependency>
<groupId>com.coze</groupId>
<artifactId>coze-api</artifactId>
<version>0.1.1</version>
</dependency>
</dependencies>
</project>
14 changes: 12 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.coze</groupId>
<artifactId>coze-sdk</artifactId>
<version>0.1.0-SNAPSHOT</version>
<artifactId>coze</artifactId>
<version>0.1.0</version>
<packaging>pom</packaging>

<modules>
Expand All @@ -22,6 +22,16 @@
<junit.version>5.8.2</junit.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.coze</groupId>
<artifactId>coze-api</artifactId>
<version>0.1.4</version>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down

0 comments on commit 9db6cbc

Please sign in to comment.