Skip to content

Commit

Permalink
refact
Browse files Browse the repository at this point in the history
  • Loading branch information
PlexPt committed Jul 4, 2024
1 parent 8c705c3 commit 4d829e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
20 changes: 1 addition & 19 deletions src/main/java/com/plexpt/chatgpt/entity/chat/ChatChoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,7 @@
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChatChoice {
// {
// "index": 0,
// "message": {
// "role": "assistant",
// "content": null,
// "tool_calls": [
// {
// "id": "call_abc123",
// "type": "function",
// "function": {
// "name": "get_current_weather",
// "arguments": "{\n\"location\": \"Boston, MA\"\n}"
// }
// }
// ]
// },
// "logprobs": null,
// "finish_reason": "tool_calls"
// }

private Integer index;
/**
* 请求参数stream为true返回是delta
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/plexpt/chatgpt/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void img() {
@org.junit.Test
public void audio() {
File file = new File("D:\\Jenny.mp3");
Transcriptions transcriptions = Transcriptions.of("whisper", AudioModel.WHISPER1.getValue());
Transcriptions transcriptions = Transcriptions.of("whisper-1", AudioModel.WHISPER1.getValue());
AudioResponse response = chatGPT.audioTranscription(file, transcriptions);
System.out.println(response.getText());
}
Expand Down

0 comments on commit 4d829e5

Please sign in to comment.