Skip to content

Commit

Permalink
Fixed the issue of mismatched error message for CreateEmbeddingsReque…
Browse files Browse the repository at this point in the history
…st due to incorrect input settings.
  • Loading branch information
WhiteMagic2014 committed Jun 6, 2023
1 parent a082bc8 commit 964b7f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ String key = "sk-your key";

## Version

### 1.4.3

- Fix bug:Fixed the issue of mismatched error message for CreateEmbeddingsRequest due to incorrect input settings.

### 1.4.2

- Fix bug:Fix the issue of incorrect formatting of the returned result when using CreateChatCompletionRequest and
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<url>https://github.com/WhiteMagic2014/gpt-magic.git</url>
<groupId>io.github.whitemagic2014</groupId>
<artifactId>gpt-magic</artifactId>
<version>1.4.2</version>
<version>1.4.3</version>

<developers>
<developer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected String sendHook() {
}
param.put("model", model);
if ((input != null && inputs != null) || (input == null && inputs == null)) {
throw new RuntimeException("chose one of prompt or prompts, but not both");
throw new RuntimeException("chose one of input or inputs, but not both");
}
if (input != null) {
param.put("input", input);
Expand Down

0 comments on commit 964b7f7

Please sign in to comment.