@@ -279,6 +279,25 @@ const docTemplate = `{
279279 }
280280 }
281281 },
282+ "/tokenMetrics": {
283+ "get": {
284+ "consumes": [
285+ "application/json"
286+ ],
287+ "produces": [
288+ "audio/x-wav"
289+ ],
290+ "summary": "Get TokenMetrics for Active Slot.",
291+ "responses": {
292+ "200": {
293+ "description": "generated audio/wav file",
294+ "schema": {
295+ "type": "string"
296+ }
297+ }
298+ }
299+ }
300+ },
282301 "/tts": {
283302 "post": {
284303 "consumes": [
@@ -723,6 +742,38 @@ const docTemplate = `{
723742 }
724743 }
725744 }
745+ },
746+ "/v1/tokenMetrics": {
747+ "get": {
748+ "consumes": [
749+ "application/json"
750+ ],
751+ "produces": [
752+ "audio/x-wav"
753+ ],
754+ "summary": "Get TokenMetrics for Active Slot.",
755+ "responses": {
756+ "200": {
757+ "description": "generated audio/wav file",
758+ "schema": {
759+ "type": "string"
760+ }
761+ }
762+ }
763+ }
764+ },
765+ "/v1/tokenize": {
766+ "post": {
767+ "summary": "Tokenize the input.",
768+ "responses": {
769+ "200": {
770+ "description": "Response",
771+ "schema": {
772+ "$ref": "#/definitions/schema.TokenizeResponse"
773+ }
774+ }
775+ }
776+ }
726777 }
727778 },
728779 "definitions": {
@@ -972,14 +1023,6 @@ const docTemplate = `{
9721023 }
9731024 }
9741025 },
975- "model.Model": {
976- "type": "object",
977- "properties": {
978- "id": {
979- "type": "string"
980- }
981- }
982- },
9831026 "openai.Assistant": {
9841027 "type": "object",
9851028 "properties": {
@@ -1682,6 +1725,14 @@ const docTemplate = `{
16821725 }
16831726 }
16841727 },
1728+ "schema.SysInfoModel": {
1729+ "type": "object",
1730+ "properties": {
1731+ "id": {
1732+ "type": "string"
1733+ }
1734+ }
1735+ },
16851736 "schema.SystemInformationResponse": {
16861737 "type": "object",
16871738 "properties": {
@@ -1694,7 +1745,7 @@ const docTemplate = `{
16941745 "loaded_models": {
16951746 "type": "array",
16961747 "items": {
1697- "$ref": "#/definitions/model.Model "
1748+ "$ref": "#/definitions/schema.SysInfoModel "
16981749 }
16991750 }
17001751 }
@@ -1718,14 +1769,25 @@ const docTemplate = `{
17181769 "description": "model name or full path",
17191770 "type": "string"
17201771 },
1721- "voice ": {
1722- "description": "voice audio file or speaker id ",
1772+ "response_format ": {
1773+ "description": "(optional) output format ",
17231774 "type": "string"
17241775 },
1725- "response_format ": {
1726- "description": "(optional) output format of generated audio file, defaults to wav, accept wav, mp3, flac, aac, opus ",
1776+ "voice ": {
1777+ "description": "voice audio file or speaker id ",
17271778 "type": "string"
1728- },
1779+ }
1780+ }
1781+ },
1782+ "schema.TokenizeResponse": {
1783+ "type": "object",
1784+ "properties": {
1785+ "tokens": {
1786+ "type": "array",
1787+ "items": {
1788+ "type": "integer"
1789+ }
1790+ }
17291791 }
17301792 },
17311793 "schema.ToolCall": {
0 commit comments