public class GiteeClient extends Object
| Constructor and Description |
|---|
GiteeClient()
从环境变量获取配置:
GITEE_AI_API_KEY, GITEE_AI_BASE
|
GiteeClient(String apiKey) |
GiteeClient(String apiKey,
String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
GiteeTaskResponse |
getTask(String taskId)
获取任务状态 /api/v1/task/{task_id}
|
GiteeTaskResponse |
parseDocument(byte[] data,
String filename)
调用 /v1/async/documents/parse 接口(字节数组形式)
|
GiteeTaskResponse |
parseDocument(byte[] data,
String filename,
String model,
String prompt) |
GiteeTaskResponse |
parseDocument(File file,
String model,
String prompt)
调用 /v1/async/documents/parse 接口(文件形式)
|
public GiteeClient()
public GiteeClient(String apiKey)
public GiteeTaskResponse parseDocument(File file, String model, String prompt)
public GiteeTaskResponse parseDocument(byte[] data, String filename)
public GiteeTaskResponse parseDocument(byte[] data, String filename, String model, String prompt)
public GiteeTaskResponse getTask(String taskId)
Copyright © 2026. All rights reserved.