完善 Rust SDK:中文化文档和注释,添加多个测试示例
- 翻译所有文档和注释为中文(README.md, CHANGELOG.md, API文档等) - 修复 reqwest TLS 支持问题,添加 rustls-tls 功能 - 新增5个测试示例: * health_check.rs - 基础健康检查 * llm_chat_test.rs - LLM聊天功能测试 * midjourney_image_test.rs - Midjourney图像生成测试 * file_upload_test.rs - 文件上传和媒体分析测试 * comprehensive_test.rs - 综合功能测试 - 添加测试脚本(PowerShell和Bash版本) - 验证API功能正常:LLM聊天、图像生成、健康检查等
This commit is contained in:
@@ -1,34 +1,34 @@
|
||||
# \DefaultApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
所有 URI 都相对于 *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
方法 | HTTP 请求 | 描述
|
||||
------------- | ------------- | -------------
|
||||
[**root_get**](DefaultApi.md#root_get) | **GET** / | Root
|
||||
[**root_get**](DefaultApi.md#root_get) | **GET** / | 根路径
|
||||
|
||||
|
||||
|
||||
## root_get
|
||||
|
||||
> serde_json::Value root_get()
|
||||
Root
|
||||
根路径
|
||||
|
||||
### Parameters
|
||||
### 参数
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
此端点不需要任何参数。
|
||||
|
||||
### Return type
|
||||
### 返回类型
|
||||
|
||||
[**serde_json::Value**](serde_json::Value.md)
|
||||
|
||||
### Authorization
|
||||
### 授权
|
||||
|
||||
No authorization required
|
||||
无需授权
|
||||
|
||||
### HTTP request headers
|
||||
### HTTP 请求头
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: 未定义
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
[[返回顶部]](#) [[返回 API 列表]](../README.md#documentation-for-api-endpoints) [[返回模型列表]](../README.md#documentation-for-models) [[返回 README]](../README.md)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# \LlmApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
所有 URI 都相对于 *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
方法 | HTTP 请求 | 描述
|
||||
------------- | ------------- | -------------
|
||||
[**google_file_upload**](LlmApi.md#google_file_upload) | **POST** /api/llm/google/vertex-ai/upload | 上传文件到谷歌存储,用于gemini视觉功能
|
||||
[**invoke_gemini_ai_api_llm_google_chat_post**](LlmApi.md#invoke_gemini_ai_api_llm_google_chat_post) | **POST** /api/llm/google/chat | 调用google推理
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# \MidjourneyApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
所有 URI 都相对于 *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
方法 | HTTP 请求 | 描述
|
||||
------------- | ------------- | -------------
|
||||
[**async_gen_image_api_mj_async_generate_image_post**](MidjourneyApi.md#async_gen_image_api_mj_async_generate_image_post) | **POST** /api/mj/async/generate/image | 异步提交生图任务
|
||||
[**async_query_status_api_mj_async_query_status_get**](MidjourneyApi.md#async_query_status_api_mj_async_query_status_get) | **GET** /api/mj/async/query/status | 异步查询任务状态
|
||||
@@ -20,28 +20,28 @@ Method | HTTP request | Description
|
||||
> serde_json::Value async_gen_image_api_mj_async_generate_image_post(prompt, img_file)
|
||||
异步提交生图任务
|
||||
|
||||
### Parameters
|
||||
### 参数
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
名称 | 类型 | 描述 | 必需 | 备注
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**prompt** | **String** | | [required] |
|
||||
**img_file** | Option<**std::path::PathBuf**> | | |
|
||||
**prompt** | **String** | 提示词 | [必需] |
|
||||
**img_file** | Option<**std::path::PathBuf**> | 图片文件 | |
|
||||
|
||||
### Return type
|
||||
### 返回类型
|
||||
|
||||
[**serde_json::Value**](serde_json::Value.md)
|
||||
|
||||
### Authorization
|
||||
### 授权
|
||||
|
||||
No authorization required
|
||||
无需授权
|
||||
|
||||
### HTTP request headers
|
||||
### HTTP 请求头
|
||||
|
||||
- **Content-Type**: multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
[[返回顶部]](#) [[返回 API 列表]](../README.md#documentation-for-api-endpoints) [[返回模型列表]](../README.md#documentation-for-models) [[返回 README]](../README.md)
|
||||
|
||||
|
||||
## async_query_status_api_mj_async_query_status_get
|
||||
|
||||
Reference in New Issue
Block a user