@@ -1198,6 +1198,30 @@ const docTemplate = `{
11981198 }
11991199 }
12001200 },
1201+ "/v1/messages": {
1202+ "post": {
1203+ "summary": "Generate a message response for the given messages and model.",
1204+ "parameters": [
1205+ {
1206+ "description": "query params",
1207+ "name": "request",
1208+ "in": "body",
1209+ "required": true,
1210+ "schema": {
1211+ "$ref": "#/definitions/schema.AnthropicRequest"
1212+ }
1213+ }
1214+ ],
1215+ "responses": {
1216+ "200": {
1217+ "description": "Response",
1218+ "schema": {
1219+ "$ref": "#/definitions/schema.AnthropicResponse"
1220+ }
1221+ }
1222+ }
1223+ }
1224+ },
12011225 "/v1/models": {
12021226 "get": {
12031227 "summary": "List and describe the various models available in the API.",
@@ -1739,6 +1763,169 @@ const docTemplate = `{
17391763 }
17401764 }
17411765 },
1766+ "schema.AnthropicContentBlock": {
1767+ "type": "object",
1768+ "properties": {
1769+ "content": {},
1770+ "id": {
1771+ "type": "string"
1772+ },
1773+ "input": {
1774+ "type": "object",
1775+ "additionalProperties": true
1776+ },
1777+ "is_error": {
1778+ "type": "boolean"
1779+ },
1780+ "name": {
1781+ "type": "string"
1782+ },
1783+ "source": {
1784+ "$ref": "#/definitions/schema.AnthropicImageSource"
1785+ },
1786+ "text": {
1787+ "type": "string"
1788+ },
1789+ "tool_use_id": {
1790+ "type": "string"
1791+ },
1792+ "type": {
1793+ "type": "string"
1794+ }
1795+ }
1796+ },
1797+ "schema.AnthropicImageSource": {
1798+ "type": "object",
1799+ "properties": {
1800+ "data": {
1801+ "type": "string"
1802+ },
1803+ "media_type": {
1804+ "type": "string"
1805+ },
1806+ "type": {
1807+ "type": "string"
1808+ }
1809+ }
1810+ },
1811+ "schema.AnthropicMessage": {
1812+ "type": "object",
1813+ "properties": {
1814+ "content": {},
1815+ "role": {
1816+ "type": "string"
1817+ }
1818+ }
1819+ },
1820+ "schema.AnthropicRequest": {
1821+ "type": "object",
1822+ "properties": {
1823+ "max_tokens": {
1824+ "type": "integer"
1825+ },
1826+ "messages": {
1827+ "type": "array",
1828+ "items": {
1829+ "$ref": "#/definitions/schema.AnthropicMessage"
1830+ }
1831+ },
1832+ "metadata": {
1833+ "type": "object",
1834+ "additionalProperties": {
1835+ "type": "string"
1836+ }
1837+ },
1838+ "model": {
1839+ "type": "string"
1840+ },
1841+ "stop_sequences": {
1842+ "type": "array",
1843+ "items": {
1844+ "type": "string"
1845+ }
1846+ },
1847+ "stream": {
1848+ "type": "boolean"
1849+ },
1850+ "system": {
1851+ "type": "string"
1852+ },
1853+ "temperature": {
1854+ "type": "number"
1855+ },
1856+ "tool_choice": {},
1857+ "tools": {
1858+ "type": "array",
1859+ "items": {
1860+ "$ref": "#/definitions/schema.AnthropicTool"
1861+ }
1862+ },
1863+ "top_k": {
1864+ "type": "integer"
1865+ },
1866+ "top_p": {
1867+ "type": "number"
1868+ }
1869+ }
1870+ },
1871+ "schema.AnthropicResponse": {
1872+ "type": "object",
1873+ "properties": {
1874+ "content": {
1875+ "type": "array",
1876+ "items": {
1877+ "$ref": "#/definitions/schema.AnthropicContentBlock"
1878+ }
1879+ },
1880+ "id": {
1881+ "type": "string"
1882+ },
1883+ "model": {
1884+ "type": "string"
1885+ },
1886+ "role": {
1887+ "type": "string"
1888+ },
1889+ "stop_reason": {
1890+ "type": "string"
1891+ },
1892+ "stop_sequence": {
1893+ "type": "string"
1894+ },
1895+ "type": {
1896+ "type": "string"
1897+ },
1898+ "usage": {
1899+ "$ref": "#/definitions/schema.AnthropicUsage"
1900+ }
1901+ }
1902+ },
1903+ "schema.AnthropicTool": {
1904+ "type": "object",
1905+ "properties": {
1906+ "description": {
1907+ "type": "string"
1908+ },
1909+ "input_schema": {
1910+ "type": "object",
1911+ "additionalProperties": true
1912+ },
1913+ "name": {
1914+ "type": "string"
1915+ }
1916+ }
1917+ },
1918+ "schema.AnthropicUsage": {
1919+ "type": "object",
1920+ "properties": {
1921+ "input_tokens": {
1922+ "type": "integer"
1923+ },
1924+ "output_tokens": {
1925+ "type": "integer"
1926+ }
1927+ }
1928+ },
17421929 "schema.BackendMonitorRequest": {
17431930 "type": "object",
17441931 "properties": {
@@ -2229,6 +2416,10 @@ const docTemplate = `{
22292416 "description": "The message name (used for tools calls)",
22302417 "type": "string"
22312418 },
2419+ "reasoning": {
2420+ "description": "Reasoning content extracted from \u003cthinking\u003e...\u003c/thinking\u003e tags",
2421+ "type": "string"
2422+ },
22322423 "role": {
22332424 "description": "The message role",
22342425 "type": "string"
0 commit comments