File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed
main/java/com/plexpt/chatgpt/entity/chat
test/java/com/plexpt/chatgpt Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 1010@ Data
1111@ JsonIgnoreProperties (ignoreUnknown = true )
1212public 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments