File tree Expand file tree Collapse file tree 1 file changed +148
-8
lines changed Expand file tree Collapse file tree 1 file changed +148
-8
lines changed Original file line number Diff line number Diff line change 10
10
"name" : " Apache 2.0" ,
11
11
"url" : " https://www.apache.org/licenses/LICENSE-2.0"
12
12
},
13
- "version" : " 2.1.1 -dev0"
13
+ "version" : " 2.1.2 -dev0"
14
14
},
15
15
"paths" : {
16
16
"/" : {
492
492
"content" : {
493
493
"application/json" : {
494
494
"schema" : {
495
- "$ref" : " #/components/schemas/Completion "
495
+ "$ref" : " #/components/schemas/CompletionFinal "
496
496
}
497
497
},
498
498
"text/event-stream" : {
499
499
"schema" : {
500
- "$ref" : " #/components/schemas/CompletionCompleteChunk "
500
+ "$ref" : " #/components/schemas/Chunk "
501
501
}
502
502
}
503
503
}
809
809
"ChatRequest" : {
810
810
"type" : " object" ,
811
811
"required" : [
812
- " model" ,
813
812
" messages"
814
813
],
815
814
"properties" : {
854
853
"model" : {
855
854
"type" : " string" ,
856
855
"description" : " [UNUSED] ID of the model to use. See the model endpoint compatibility table for details on which models work with the Chat API." ,
857
- "example" : " mistralai/Mistral-7B-Instruct-v0.2"
856
+ "example" : " mistralai/Mistral-7B-Instruct-v0.2" ,
857
+ "nullable" : true
858
858
},
859
859
"n" : {
860
860
"type" : " integer" ,
1116
1116
"CompletionRequest" : {
1117
1117
"type" : " object" ,
1118
1118
"required" : [
1119
- " model" ,
1120
1119
" prompt"
1121
1120
],
1122
1121
"properties" : {
1138
1137
"model" : {
1139
1138
"type" : " string" ,
1140
1139
"description" : " UNUSED\n ID of the model to use. See the model endpoint compatibility table for details on which models work with the Chat API." ,
1141
- "example" : " mistralai/Mistral-7B-Instruct-v0.2"
1140
+ "example" : " mistralai/Mistral-7B-Instruct-v0.2" ,
1141
+ "nullable" : true
1142
1142
},
1143
1143
"prompt" : {
1144
1144
"$ref" : " #/components/schemas/Prompt"
1324
1324
}
1325
1325
}
1326
1326
},
1327
+ "FunctionName" : {
1328
+ "type" : " object" ,
1329
+ "required" : [
1330
+ " name"
1331
+ ],
1332
+ "properties" : {
1333
+ "name" : {
1334
+ "type" : " string"
1335
+ }
1336
+ }
1337
+ },
1327
1338
"GenerateParameters" : {
1328
1339
"type" : " object" ,
1329
1340
"properties" : {
1708
1719
}
1709
1720
}
1710
1721
},
1722
+ "MessageChunk" : {
1723
+ "oneOf" : [
1724
+ {
1725
+ "type" : " object" ,
1726
+ "required" : [
1727
+ " text" ,
1728
+ " type"
1729
+ ],
1730
+ "properties" : {
1731
+ "text" : {
1732
+ "type" : " string"
1733
+ },
1734
+ "type" : {
1735
+ "type" : " string" ,
1736
+ "enum" : [
1737
+ " text"
1738
+ ]
1739
+ }
1740
+ }
1741
+ },
1742
+ {
1743
+ "type" : " object" ,
1744
+ "required" : [
1745
+ " image_url" ,
1746
+ " type"
1747
+ ],
1748
+ "properties" : {
1749
+ "image_url" : {
1750
+ "$ref" : " #/components/schemas/Url"
1751
+ },
1752
+ "type" : {
1753
+ "type" : " string" ,
1754
+ "enum" : [
1755
+ " image_url"
1756
+ ]
1757
+ }
1758
+ }
1759
+ }
1760
+ ],
1761
+ "discriminator" : {
1762
+ "propertyName" : " type"
1763
+ }
1764
+ },
1765
+ "MessageContent" : {
1766
+ "oneOf" : [
1767
+ {
1768
+ "type" : " string"
1769
+ },
1770
+ {
1771
+ "type" : " array" ,
1772
+ "items" : {
1773
+ "$ref" : " #/components/schemas/MessageChunk"
1774
+ }
1775
+ }
1776
+ ]
1777
+ },
1778
+ "OutputMessage" : {
1779
+ "oneOf" : [
1780
+ {
1781
+ "$ref" : " #/components/schemas/TextMessage"
1782
+ },
1783
+ {
1784
+ "$ref" : " #/components/schemas/ToolCallMessage"
1785
+ }
1786
+ ]
1787
+ },
1711
1788
"PrefillToken" : {
1712
1789
"type" : " object" ,
1713
1790
"required" : [
1834
1911
}
1835
1912
}
1836
1913
},
1914
+ "TextMessage" : {
1915
+ "type" : " object" ,
1916
+ "required" : [
1917
+ " role" ,
1918
+ " content"
1919
+ ],
1920
+ "properties" : {
1921
+ "content" : {
1922
+ "type" : " string" ,
1923
+ "example" : " My name is David and I"
1924
+ },
1925
+ "role" : {
1926
+ "type" : " string" ,
1927
+ "example" : " user"
1928
+ }
1929
+ }
1930
+ },
1837
1931
"Token" : {
1838
1932
"type" : " object" ,
1839
1933
"required" : [
1906
2000
}
1907
2001
}
1908
2002
},
2003
+ "ToolCallDelta" : {
2004
+ "type" : " object" ,
2005
+ "required" : [
2006
+ " role" ,
2007
+ " tool_calls"
2008
+ ],
2009
+ "properties" : {
2010
+ "role" : {
2011
+ "type" : " string" ,
2012
+ "example" : " assistant"
2013
+ },
2014
+ "tool_calls" : {
2015
+ "$ref" : " #/components/schemas/DeltaToolCall"
2016
+ }
2017
+ }
2018
+ },
2019
+ "ToolCallMessage" : {
2020
+ "type" : " object" ,
2021
+ "required" : [
2022
+ " role" ,
2023
+ " tool_calls"
2024
+ ],
2025
+ "properties" : {
2026
+ "role" : {
2027
+ "type" : " string" ,
2028
+ "example" : " assistant"
2029
+ },
2030
+ "tool_calls" : {
2031
+ "type" : " array" ,
2032
+ "items" : {
2033
+ "$ref" : " #/components/schemas/ToolCall"
2034
+ }
2035
+ }
2036
+ }
2037
+ },
1909
2038
"ToolType" : {
1910
2039
"oneOf" : [
1911
2040
{
1929
2058
}
1930
2059
]
1931
2060
},
2061
+ "Url" : {
2062
+ "type" : " object" ,
2063
+ "required" : [
2064
+ " url"
2065
+ ],
2066
+ "properties" : {
2067
+ "url" : {
2068
+ "type" : " string"
2069
+ }
2070
+ }
2071
+ },
1932
2072
"Usage" : {
1933
2073
"type" : " object" ,
1934
2074
"required" : [
1962
2102
"description" : " Hugging Face Text Generation Inference API"
1963
2103
}
1964
2104
]
1965
- }
2105
+ }
You can’t perform that action at this time.
0 commit comments