Skip to content

Commit 4d829e5

Browse files
committed
refact
1 parent 8c705c3 commit 4d829e5

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

src/main/java/com/plexpt/chatgpt/entity/chat/ChatChoice.java

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,7 @@
1010
@Data
1111
@JsonIgnoreProperties(ignoreUnknown = true)
1212
public class ChatChoice {
13-
// {
14-
// "index": 0,
15-
// "message": {
16-
// "role": "assistant",
17-
// "content": null,
18-
// "tool_calls": [
19-
// {
20-
// "id": "call_abc123",
21-
// "type": "function",
22-
// "function": {
23-
// "name": "get_current_weather",
24-
// "arguments": "{\n\"location\": \"Boston, MA\"\n}"
25-
// }
26-
// }
27-
// ]
28-
// },
29-
// "logprobs": null,
30-
// "finish_reason": "tool_calls"
31-
// }
13+
3214
private Integer index;
3315
/**
3416
* 请求参数stream为true返回是delta

src/test/java/com/plexpt/chatgpt/Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void img() {
8080
@org.junit.Test
8181
public void audio() {
8282
File file = new File("D:\\Jenny.mp3");
83-
Transcriptions transcriptions = Transcriptions.of("whisper", AudioModel.WHISPER1.getValue());
83+
Transcriptions transcriptions = Transcriptions.of("whisper-1", AudioModel.WHISPER1.getValue());
8484
AudioResponse response = chatGPT.audioTranscription(file, transcriptions);
8585
System.out.println(response.getText());
8686
}

0 commit comments

Comments
 (0)