final version
This commit is contained in:
@@ -27,7 +27,7 @@ const AlgorithmShowcaseClient = require('algorithm-showcase-sdk');
|
||||
|
||||
// 初始化客户端
|
||||
const client = new AlgorithmShowcaseClient(
|
||||
'http://localhost:8000/api/v1', // API基础URL
|
||||
'http://localhost:8001/api/v1', // API基础URL
|
||||
'your-api-key' // 可选,API密钥
|
||||
);
|
||||
```
|
||||
|
||||
@@ -13,7 +13,7 @@ class AlgorithmShowcaseClient {
|
||||
* @param {string} baseUrl - API基础URL
|
||||
* @param {string} apiKey - API密钥
|
||||
*/
|
||||
constructor(baseUrl = 'http://localhost:8000/api/v1', apiKey = null) {
|
||||
constructor(baseUrl = 'http://localhost:8001/api/v1', apiKey = null) {
|
||||
this.baseUrl = baseUrl.replace(/\/$/, '');
|
||||
this.apiKey = apiKey;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user