diff --git a/.idea/deployment.xml b/.idea/deployment.xml new file mode 100644 index 0000000..ee0a6e0 --- /dev/null +++ b/.idea/deployment.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/low-carbon-platform-php.iml b/.idea/low-carbon-platform-php.iml new file mode 100644 index 0000000..877f80c --- /dev/null +++ b/.idea/low-carbon-platform-php.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..8126e1a --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/phpunit.xml b/.idea/phpunit.xml new file mode 100644 index 0000000..422c581 --- /dev/null +++ b/.idea/phpunit.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..50729e1 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + $PROJECT_DIR$/composer.json + + + + + + + + + + + { + "customColor": "", + "associatedIndex": 6 +} + + + + { + "keyToString": { + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "WebServerToolWindowFactoryState": "false", + "git-widget-placeholder": "master", + "ignore.virus.scanning.warn.message": "true", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "settings.editor.selected.configurable": "reference.webide.settings.project.settings.php", + "vue.rearranger.settings.migration": "true" + } +} + + + + + 1712109998194 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/Model/ResponseOpenAPITokensCountResult.md b/docs/Model/ResponseOpenAPITokensCountResult.md new file mode 100644 index 0000000..0f7d9fb --- /dev/null +++ b/docs/Model/ResponseOpenAPITokensCountResult.md @@ -0,0 +1,20 @@ +# # ResponseOpenAPITokensCountResult + +## 属性 + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **string** | 该消息发生的时间 | [optional] +**openid** | **string** | | [optional] +**payload** | [**\OpenAPI\Client\Model\TokensCountResult**](TokensCountResult.md) | | [optional] +**sign** | **string** | | [optional] +**charset** | **string** | | [optional] +**description** | **string** | | [optional] +**response_id** | **string** | 消息的唯一ID | [optional] +**err_code** | **int** | 该消息的错误码 | [optional] +**err_msg** | **string** | 错误消息描述 | [optional] +**sub_err** | **int** | 子错误的具体的代号 | [optional] +**sub_msg** | **string** | 子错误对应的提示消息 | [optional] +**sign_type** | **string** | | [optional] + +[[返回模型列表]](../../README.md#模型文档) [[返回API列表]](../../README.md#api端点文档) [[返回README]](../../README.md) diff --git a/docs/Model/TokenCountParam.md b/docs/Model/TokenCountParam.md new file mode 100644 index 0000000..184a560 --- /dev/null +++ b/docs/Model/TokenCountParam.md @@ -0,0 +1,9 @@ +# # TokenCountParam + +## 属性 + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **string** | 需要统计的内容 | + +[[返回模型列表]](../../README.md#模型文档) [[返回API列表]](../../README.md#api端点文档) [[返回README]](../../README.md) diff --git a/docs/Model/TokensCountResult.md b/docs/Model/TokensCountResult.md new file mode 100644 index 0000000..9a59006 --- /dev/null +++ b/docs/Model/TokensCountResult.md @@ -0,0 +1,9 @@ +# # TokensCountResult + +## 属性 + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input_tokens** | **int** | 输入文本对应的token数目。 | [optional] + +[[返回模型列表]](../../README.md#模型文档) [[返回API列表]](../../README.md#api端点文档) [[返回README]](../../README.md) diff --git a/test/Model/ResponseOpenAPITokensCountResultTest.php b/test/Model/ResponseOpenAPITokensCountResultTest.php new file mode 100644 index 0000000..77a0ffc --- /dev/null +++ b/test/Model/ResponseOpenAPITokensCountResultTest.php @@ -0,0 +1,189 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "time" + */ + public function testPropertyTime() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "openid" + */ + public function testPropertyOpenid() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "payload" + */ + public function testPropertyPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "sign" + */ + public function testPropertySign() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "charset" + */ + public function testPropertyCharset() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "description" + */ + public function testPropertyDescription() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "response_id" + */ + public function testPropertyResponseId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "err_code" + */ + public function testPropertyErrCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "err_msg" + */ + public function testPropertyErrMsg() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "sub_err" + */ + public function testPropertySubErr() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "sub_msg" + */ + public function testPropertySubMsg() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "sign_type" + */ + public function testPropertySignType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/TokenCountParamTest.php b/test/Model/TokenCountParamTest.php new file mode 100644 index 0000000..0d0e86c --- /dev/null +++ b/test/Model/TokenCountParamTest.php @@ -0,0 +1,90 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "content" + */ + public function testPropertyContent() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/TokensCountResultTest.php b/test/Model/TokensCountResultTest.php new file mode 100644 index 0000000..6bcb7d0 --- /dev/null +++ b/test/Model/TokensCountResultTest.php @@ -0,0 +1,90 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "input_tokens" + */ + public function testPropertyInputTokens() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +}