Turkeyengineer commited on
Commit
51c71ae
·
verified ·
1 Parent(s): 2d63baf

Update .well-known/openapi.yaml

Browse files
Files changed (1) hide show
  1. .well-known/openapi.yaml +5 -7
.well-known/openapi.yaml CHANGED
@@ -2,15 +2,13 @@ openapi: 3.1.0
2
  info:
3
  title: TurkeyEngineer Segment API
4
  version: 1.0.0
5
- description: 呼叫 Hugging Face 上的斷詞 API,將中文句子依字分開。
6
  servers:
7
  - url: https://turkeyengineer-test.hf.space
8
- description: Hugging Face Space hosting the segment API
9
  paths:
10
- paths:
11
- /run_predict: # ✅ 使用正確的 API 路徑
12
  post:
13
- operationId: run_predict # ✅ 保留 operationId 但不讓它決定 endpoint
14
  summary: 將中文句子依字分開
15
  requestBody:
16
  required: true
@@ -23,12 +21,12 @@ paths:
23
  type: array
24
  items:
25
  type: string
26
- description: 要處理的中文句子陣列
27
  required:
28
  - data
29
  responses:
30
  '200':
31
- description: 成功的回應分詞結果
32
  content:
33
  application/json:
34
  schema:
 
2
  info:
3
  title: TurkeyEngineer Segment API
4
  version: 1.0.0
5
+ description: 提供 /run_predict 路由,將中文句子依字分開。
6
  servers:
7
  - url: https://turkeyengineer-test.hf.space
 
8
  paths:
9
+ /run_predict:
 
10
  post:
11
+ operationId: run_predict
12
  summary: 將中文句子依字分開
13
  requestBody:
14
  required: true
 
21
  type: array
22
  items:
23
  type: string
24
+ description: 要分詞的句子
25
  required:
26
  - data
27
  responses:
28
  '200':
29
+ description: 成功的回應
30
  content:
31
  application/json:
32
  schema: