-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopenapi.yaml
1723 lines (1665 loc) · 51.3 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
title: SiliconFlow API
description: The SiliconFlow REST API
version: "1.0.0"
contact:
name: SiliconFlow Support
url: https://www.siliconflow.cn/
license:
name: MIT
url: https://github.com/siliconflow/siliconcloud/blob/main/LICENSE
servers:
- url: https://api.siliconflow.cn/v1
security:
- bearerAuth: [ ]
paths:
/user/info:
get:
summary: 获取用户信息
operationId: user-info
description: 获取用户信息,包括余额和状态
tags:
- UserInfo
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
code:
type: integer
example: 20000
message:
type: string
example: OK
status:
type: boolean
example: true
data:
type: object
properties:
id:
type: string
example: "userid"
name:
type: string
example: "username"
image:
type: string
example: "user_avatar_image_url"
email:
type: string
example: "user_email_address"
isAdmin:
type: boolean
example: false
balance:
type: string
example: "0.88"
status:
type: string
example: "normal"
introduction:
type: string
example: "user_introduction"
role:
type: string
example: "user_role"
chargeBalance:
type: string
example: "88.00"
totalBalance:
type: string
example: "88.88"
'400':
description: 'BadRequest'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'401':
description: 'Unauthorized'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'404':
description: 'NotFound'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'429':
description: 'RateLimit'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'503':
description: 'Overloaded'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'504':
description: 'Timeout'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
deprecated: false
/models:
get:
summary: Get Model List
operationId: Retrieve a list of models.
description: Retrieve models information.
parameters:
- name: type
in: query
description: The type of models
required: false
schema:
type: string
enum: [ text, image, audio, video ]
- name: sub_type
in: query
description: The sub type of models. You can use it to filter models individually without setting type.
required: false
schema:
type: string
enum: [ chat, embedding, reranker, text-to-image, image-to-image, speech-to-text, text-to-video ]
tags:
- Models
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
object:
type: string
example: list
data:
type: array
items:
type: object
properties:
id:
type: string
example: stabilityai/stable-diffusion-xl-base-1.0
object:
type: string
example: model
created:
type: integer
example: 0
owned_by:
type: string
example: ""
'400':
description: 'BadRequest'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'401':
description: 'Unauthorized'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'404':
description: 'NotFound'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'429':
description: 'RateLimit'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'503':
description: 'Overloaded'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'504':
description: 'Timeout'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
deprecated: false
/uploads/audio/voice:
post:
summary: Upload Voice
description: 上传用户预置音色,支持以 base64 编码或者文件形式上传,参考https://docs.siliconflow.cn/capabilities/text-to-speech#2-2)
operationId: uploadAudioVoice
parameters: []
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
model:
type: string
example: "fishaudio/fish-speech-1.4"
enum: ["fishaudio/fish-speech-1.4"]
description: "预置音色的模型名称"
customName:
type: string
example: "your-voice-name"
description: "用户自定义的音色名称"
default: "硅基流动音色模型"
text:
type: string
example: "在一无所知中, 梦里的一天结束了,一个新的轮回便会开始"
description: "音频对应的文字内容"
default: "在一无所知中, 梦里的一天结束了,一个新的轮回便会开始"
required:
- model
- customName
- text
oneOf:
- properties:
audio:
title: base64 编码音频
type: string
example: "data:audio/mpeg;base64,aGVsbG93b3JsZA=="
description: "使用 base64 编码的音频文件,头部为:`data:audio/mpeg;base64,`格式"
- properties:
file:
title: 文件上传音频
type: string
format: binary
example: /path/to/audio.mp3
description: "待上传的文件"
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
uri:
type: string
example: 'speech:your-voice-name:cm04pf7az00061413w7kz5qxs:mjtkgbyuunvtybnsvbxd'
'400':
description: 'BadRequest'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'401':
description: 'Unauthorized'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'404':
description: 'NotFound'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'429':
description: 'RateLimit'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'503':
description: 'Overloaded'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'504':
description: 'Timeout'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
deprecated: false
/chat/completions:
post:
summary: Chat Completions
operationId: chat-completions
description: Creates a model response for the given chat conversation.
tags:
- Chat Completions
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/ChatCompletionRequest"
responses:
'200':
description: '200'
content:
application/json:
schema:
$ref: "#/components/schemas/ChatCompletionResponse"
text/event-stream:
schema:
$ref: "#/components/schemas/ChatCompletionStream"
'400':
description: 'BadRequest'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'401':
description: 'Unauthorized'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'404':
description: 'NotFound'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'429':
description: 'RateLimit'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'503':
description: 'Overloaded'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'504':
description: 'Timeout'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
deprecated: false
/embeddings:
post:
summary: Create Embeddings
description: Creates an embedding vector representing the input text.
operationId: createEmbedding
tags:
- Embeddings
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EmbeddingsRequest'
responses:
'200':
description: '200'
content:
application/json:
schema:
$ref: '#/components/schemas/EmbeddingsResponse'
'400':
description: 'BadRequest'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'401':
description: 'Unauthorized'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'404':
description: 'NotFound'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'429':
description: 'RateLimit'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'503':
description: 'Overloaded'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'504':
description: 'Timeout'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
deprecated: false
/audio/speech:
post:
operationId: createSpeech
tags:
- Audio
summary: Create Speech
description: 从输入文本生成音频。根据输入的文本生成音频。接口生成的数据为音频的二进制数据,需要使用者自行处理。参考:https://docs.siliconflow.cn/capabilities/text-to-speech#5
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CreateSpeechRequest"
responses:
"200":
description: 根据输入的文本生成音频。接口生成的数据为音频的二进制数据,需要使用者自行处理。参考:https://docs.siliconflow.cn/capabilities/text-to-speech#5
headers:
Transfer-Encoding:
schema:
type: string
description: chunked
content:
application/octet-stream:
schema:
type: string
format: binary
/audio/transcriptions:
post:
summary: Create Audio Transcriptions
description: Creates an audio transcription.
operationId: createAudioTranscriptions
tags:
- Audio
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/AudioRequest'
responses:
'200':
description: '200'
content:
application/json:
schema:
$ref: '#/components/schemas/AudioResponse'
'400':
description: 'BadRequest'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'401':
description: 'Unauthorized'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'404':
description: 'NotFound'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'429':
description: 'RateLimit'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'503':
description: 'Overloaded'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'504':
description: 'Timeout'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
deprecated: false
/rerank:
post:
summary: Create Rerank
description: Creates a rerank request.
operationId: createRerank
tags:
- Rerank
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RerankRequest'
responses:
'200':
description: '200'
content:
application/json:
schema:
$ref: '#/components/schemas/RerankResponse'
'400':
description: 'BadRequest'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'401':
description: 'Unauthorized'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'404':
description: 'NotFound'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'429':
description: 'RateLimit'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'503':
description: 'Overloaded'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
'504':
description: 'Timeout'
content:
application/json:
schema:
$ref: '#/components/schemas/StringData'
deprecated: false
/images/generations:
post:
summary: Image Generation
operationId: ImageGeneration
description: Creates an image response for the given prompt.
tags:
- Image
requestBody:
content:
application/json:
schema:
oneOf:
- $ref: "#/components/schemas/stable-diffusion-3-5-large"
- $ref: "#/components/schemas/FLUX.1-schnell"
- $ref: "#/components/schemas/Pro-FLUX.1-schnell"
- $ref: "#/components/schemas/FLUX.1-dev"
- $ref: "#/components/schemas/stable-diffusion-3-medium"
- $ref: "#/components/schemas/stable-diffusion-xl-base-1.0"
- $ref: "#/components/schemas/stable-diffusion-2-1"
responses:
'200':
description: '200'
content:
application/json:
schema:
$ref: "#/components/schemas/ImagesGenerationResponse"
'400':
description: 'BadRequest'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'401':
description: 'Unauthorized'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'404':
description: 'NotFound'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'429':
description: 'RateLimit'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'503':
description: 'Overloaded'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
'504':
description: 'Timeout'
content:
application/json:
schema:
$ref: "#/components/schemas/StringData"
deprecated: false
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
schemas:
EmbeddingsRequest:
type: object
required:
- model
- input
properties:
model:
type: string
description: The name of the embedding model to use.要使用的 embedding 模型名称。
example: BAAI/bge-large-zh-v1.5
enum:
- BAAI/bge-large-zh-v1.5
- BAAI/bge-large-en-v1.5
- netease-youdao/bce-embedding-base_v1
- BAAI/bge-m3
- Pro/BAAI/bge-m3
input:
description: |
Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (512 tokens for all models except BAAI/bge-m3 which is 8192), cannot be an empty string.
输入的文本将被编码为字符串或 tokens 数组。要在单个请求中嵌入多个输入,请传递字符串数组或字符串数组。每个字符串不得超过模型的最大 tokens 限制(BAAI/bge-m3模型为8192tokens,其余模型为512tokens),且不能为空字符串。
default: "硅基流动embedding上线,多快好省的 embedding 服务,快来试试吧"
oneOf:
- type: string
title: string
description: The string that will be turned into an embedding. the item must not exceed the max models tokens limitation.
将字符串数组转换为嵌入,string 长度不得超过模型的最大 tokens 限制。当前输入长度不得超过当前模型的 512 个 tokens。
default: "硅基流动embedding上线,多快好省的 embedding 服务,快来试试吧"
example: "硅基流动embedding上线,多快好省的 embedding 服务,快来试试吧"
- type: array
title: array
description: |
The array of strings that will be turned into an embedding. The array length must not exceed the max size, and the item must not exceed the max models tokens limitation.
Current, the maximum array size is 32 , At the same time every item must not exceed 512 tokens for current models.
将字符串数组转换为嵌入。数组长度不得超过最大限制,且每项不得超过模型的最大 tokens 限制。目前,最大数组大小为 32,同时每项不得超过当前模型的 512 个 tokens。
minItems: 1
maxItems: 32
items:
type: string
default: "['大语言模型', 'LLM', 'Embedding', 'RAG']"
example: "['大语言模型', 'LLM', 'Embedding', 'RAG']"
encoding_format:
description: |
"The format to return the embeddings in. Can be either `float` or [`base64`](https://pypi.org/project/pybase64/). 返回嵌入的格式。可以是 float 或 [`base64`](https://pypi.org/project/pybase64/)."
example: "float"
default: "float"
type: string
enum: [ "float", "base64" ]
EmbeddingsResponse:
type: object
required:
- object
- model
- data
- usage
properties:
object:
type: string
description: The object type, which is always "list".
enum:
- [ list ]
model:
description: The name of the model used to generate the embedding.
type: string
data:
type: array
description: The list of embeddings generated by the model.
items:
type: object
required: [ index, object, embedding ]
properties:
object:
type: string
enum:
- embedding
embedding:
type: array
items:
type: number
index:
type: integer
usage:
type: object
description: The usage information for the request.
properties:
prompt_tokens:
type: integer
description: The number of tokens used by the prompt.
completion_tokens:
type: integer
description: The number of tokens used by the completion.
total_tokens:
type: integer
description: The total number of tokens used by the request.
required:
- prompt_tokens
- total_tokens
- completion_tokens
RerankRequest:
type: object
required:
- model
- query
- documents
properties:
model:
type: string
description: Specifies the model to be used.
example: BAAI/bge-reranker-v2-m3
enum:
- BAAI/bge-reranker-v2-m3
- netease-youdao/bce-reranker-base_v1
query:
type: string
description: Required. The search query.
example: Apple
default: Apple
documents:
type: array
minItems: 1
items:
type: string
description: Required. List of documents to be reordered. If document objects are provided, the 'text' field is mandatory, and other fields will be preserved in the response.
example: [ "苹果", "香蕉", "水果", "蔬菜" ]
default: [ "苹果", "香蕉", "水果", "蔬菜" ]
top_n:
type: integer
example: 4
description: Number of most relevant documents or indices to return.
return_documents:
type: boolean
default: false
description: If false, the response does not include document text; if true, it includes the input document text.
max_chunks_per_doc:
type: integer
default: 1024
description: Maximum number of chunks generated from within a document. Long documents are divided into multiple chunks for calculation, and the highest score among the chunks is taken as the document's score.
overlap_tokens:
type: integer
default: 80
maximum: 80
description: Number of token overlaps between adjacent chunks when documents are chunked.
RerankResponse:
type: object
required:
- id
- results
- tokens
properties:
id:
type: string
results:
type: array
items:
type: object
properties:
document:
type: object
properties:
text:
type: string
description: Original document content.
index:
type: integer
description: The index value of the position in the input candidate doc array.
relevance_score:
type: number
description: Similarity score.
tokens:
type: object
properties:
input_tokens:
type: integer
output_tokens:
type: integer
CreateSpeechRequest:
type: object
additionalProperties: false
properties:
model:
description: |
Current available TTS models: `fishaudio/fish-speech-1.4`
type: string
example: "fishaudio/fish-speech-1.4"
enum: ["fishaudio/fish-speech-1.4"]
input:
type: string
description: The text to generate audio for.
maxLength: 128000
minLength: 1
voice:
description: The voice to use when generating the audio. Supported voices are `fishaudio/fish-speech-1.4:alex`, `fishaudio/fish-speech-1.4:anna`, `fishaudio/fish-speech-1.4:bella`, `fishaudio/fish-speech-1.4:benjamin`, `fishaudio/fish-speech-1.4:charles`, `fishaudio/fish-speech-1.4:claire`, `fishaudio/fish-speech-1.4:david`, `fishaudio/fish-speech-1.4:diana`. Previews of the voices are available in the [Text to speech guide](/capabilities/text-to-speech).
type: string
enum: [
"fishaudio/fish-speech-1.4:alex",
"fishaudio/fish-speech-1.4:anna",
"fishaudio/fish-speech-1.4:bella",
"fishaudio/fish-speech-1.4:benjamin",
"fishaudio/fish-speech-1.4:charles",
"fishaudio/fish-speech-1.4:claire",
"fishaudio/fish-speech-1.4:david",
"fishaudio/fish-speech-1.4:diana"
]
response_format:
description: "The format to audio in. Supported formats are `mp3`, `opus`, `wav`, `pcm`"
default: "mp3"
type: string
enum: ["mp3", "opus", "wav", "pcm"]
required:
- model
- input
- voice
AudioRequest:
type: object
required:
- model
- file
properties:
file:
type: string
description: The audio file object (not file name) to transcribe
example: /path/to/audio.mp3
format: binary
model:
type: string
description: The name of the audio model to use.
example: FunAudioLLM/SenseVoiceSmall
enum:
- FunAudioLLM/SenseVoiceSmall
AudioResponse:
type: object
description: Represents a transcription response returned by model, based on the provided input.
required:
- text
properties:
text:
description: The transcribed text.
type: string
StringData:
type: string
ErrorData:
type: object
required:
- error
properties:
error:
type: object
properties:
message:
type: string
nullable: false
type:
type: string
nullable: false
param:
type: string
nullable: true
default: null
code:
type: string
nullable: true
default: null
required:
- type
- message
- param
- code
FinishReason:
type: string
enum:
- stop
- eos
- length
- tool_calls
LogprobsPart:
type: object
properties:
tokens:
type: array
items:
type: string
description: List of token strings
token_logprobs:
type: array
items:
type: number
format: float
description: List of token log probabilities
PromptPart:
type: array
items:
type: object
properties:
text:
type: string
example: <s>[INST] What is the capital of France? [/INST]
default: <s>[INST] What is the capital of France? [/INST]
logprobs:
$ref: "#/components/schemas/LogprobsPart"
UsageData:
type: object
properties:
prompt_tokens:
type: integer
completion_tokens:
type: integer
total_tokens:
type: integer
CompletionChoicesData:
type: array
items:
type: object
properties:
text:
type: string
finish_reason:
$ref: "#/components/schemas/FinishReason"
logprobs:
allOf:
- $ref: "#/components/schemas/LogprobsPart"
- nullable: true
CompletionResponse:
type: object
properties:
id:
type: string
choices:
$ref: "#/components/schemas/CompletionChoicesData"
prompt:
$ref: "#/components/schemas/PromptPart"
usage:
$ref: "#/components/schemas/UsageData"
created:
type: integer
model:
type: string
object:
type: string
enum:
- text_completion
required:
- id
- choices
- usage
- created
- model
- object
CompletionStream:
oneOf:
- $ref: "#/components/schemas/CompletionEvent"
CompletionEvent:
type: object