You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi.yaml
+41-10Lines changed: 41 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -249,10 +249,12 @@ paths:
249
249
type: string
250
250
description: A description of the desired images. Maximum length varies by model.
251
251
example: cat floating in space, cinematic
252
+
default: cat floating in space, cinematic
252
253
model:
253
254
type: string
254
255
description: The model to use for image generation.
255
256
example: stabilityai/stable-diffusion-xl-base-1.0
257
+
default: stabilityai/stable-diffusion-xl-base-1.0
256
258
steps:
257
259
type: integer
258
260
default: 20
@@ -414,7 +416,7 @@ paths:
414
416
lora_alpha:
415
417
type: integer
416
418
default: 8
417
-
description: The alpha value for LoRA adapter training.
419
+
description: The alpha value for LoRA adapter training.
418
420
lora_dropout:
419
421
type: number
420
422
format: float
@@ -607,10 +609,12 @@ components:
607
609
type: string
608
610
description: The model to be used for the rerank request.
609
611
example: Salesforce/Llama-Rank-V1
612
+
default: Salesforce/Llama-Rank-V1
610
613
query:
611
614
type: string
612
615
description: The search query to be used for ranking.
613
-
example: 'What animals can I find near Peru?'
616
+
example: What animals can I find near Peru?
617
+
default: What animals can I find near Peru?
614
618
documents:
615
619
description: List of documents, which can be either strings or objects.
616
620
oneOf:
@@ -639,6 +643,23 @@ components:
639
643
'title': 'Wild Bactrian camel',
640
644
'text': 'The wild Bactrian camel (Camelus ferus) is an endangered species of camel endemic to Northwest China and southwestern Mongolia.',
641
645
}
646
+
default:
647
+
- {
648
+
'title': 'Llama',
649
+
'text': 'The llama is a domesticated South American camelid, widely used as a meat and pack animal by Andean cultures since the pre-Columbian era.',
650
+
}
651
+
- {
652
+
'title': 'Panda',
653
+
'text': 'The giant panda (Ailuropoda melanoleuca), also known as the panda bear or simply panda, is a bear species endemic to China.',
654
+
}
655
+
- {
656
+
'title': 'Guanaco',
657
+
'text': 'The guanaco is a camelid native to South America, closely related to the llama. Guanacos are one of two wild South American camelids; the other species is the vicuña, which lives at higher elevations.',
658
+
}
659
+
- {
660
+
'title': 'Wild Bactrian camel',
661
+
'text': 'The wild Bactrian camel (Camelus ferus) is an endangered species of camel endemic to Northwest China and southwestern Mongolia.',
662
+
}
642
663
top_n:
643
664
type: integer
644
665
description: The number of top results to return.
@@ -829,11 +850,13 @@ components:
829
850
prompt:
830
851
type: string
831
852
description: A string providing context for the model to complete.
832
-
example: '<s>[INST] What is the capital of France? [/INST]'
853
+
example: <s>[INST] What is the capital of France? [/INST]
854
+
default: <s>[INST] What is the capital of France? [/INST]
833
855
model:
834
856
type: string
835
857
description: The name of the model to query.
836
858
example: mistralai/Mixtral-8x7B-Instruct-v0.1
859
+
default: mistralai/Mixtral-8x7B-Instruct-v0.1
837
860
max_tokens:
838
861
type: integer
839
862
description: The maximum number of tokens to generate.
@@ -899,9 +922,9 @@ components:
899
922
description: Adjusts the likelihood of specific tokens appearing in the generated output.
900
923
example: { '1024': -10.5, '105': 21.4 }
901
924
seed:
902
-
type: integer
903
-
description: Seed value for reproducibility.
904
-
example: 42
925
+
type: integer
926
+
description: Seed value for reproducibility.
927
+
example: 42
905
928
CompletionResponse:
906
929
type: object
907
930
properties:
@@ -959,7 +982,7 @@ components:
959
982
- $ref: '#/components/schemas/UsageData'
960
983
- nullable: true
961
984
seed:
962
-
type: integer
985
+
type: integer
963
986
finish_reason:
964
987
allOf:
965
988
- $ref: '#/components/schemas/FinishReason'
@@ -1072,10 +1095,16 @@ components:
1072
1095
required:
1073
1096
- role
1074
1097
- content
1098
+
default:
1099
+
- role: system
1100
+
content: You are a helpful assistant
1101
+
- role: user
1102
+
content: What is 1 + 1?
1075
1103
model:
1076
1104
type: string
1077
1105
description: The name of the model to query.
1078
1106
example: mistralai/Mixtral-8x7B-Instruct-v0.1
1107
+
default: mistralai/Mixtral-8x7B-Instruct-v0.1
1079
1108
max_tokens:
1080
1109
type: integer
1081
1110
description: The maximum number of tokens to generate.
@@ -1135,9 +1164,9 @@ components:
1135
1164
description: Adjusts the likelihood of specific tokens appearing in the generated output.
1136
1165
example: { '1024': -10.5, '105': 21.4 }
1137
1166
seed:
1138
-
type: integer
1139
-
description: Seed value for reproducibility.
1140
-
example: 42
1167
+
type: integer
1168
+
description: Seed value for reproducibility.
1169
+
example: 42
1141
1170
function_call:
1142
1171
oneOf:
1143
1172
- type: string
@@ -1438,6 +1467,7 @@ components:
1438
1467
type: string
1439
1468
description: The name of the embedding model to use.
0 commit comments