December 9, 2025

以 Markdown 格式查看

3.24.0

(feat): 添加支持通过 generators.yml 中的 default-timeout-in-seconds 配置默认超时时间。之前默认超时时间硬编码为 60 秒。现在您可以自定义:

配置示例:

1config:
2 default-timeout-in-seconds: 120

3.23.4

(chore): OAuth 令牌覆盖现在始终为使用 OAuth 客户端凭据认证的 API 启用。已删除 oauth-token-override 配置标志 - SDK 用户现在始终可以选择直接提供预生成的 bearer 令牌或使用 OAuth 客户端凭据流程。

生成的用法:

1// 选项 1:直接 bearer 令牌(绕过 OAuth 流程)
2SeedApiClient client = SeedApiClient.withToken("my-pre-generated-bearer-token")
3 .url("https://api.example.com")
4 .build();
5
6// 选项 2:OAuth 客户端凭据流程(自动令牌管理)
7SeedApiClient client = SeedApiClient.withCredentials("your-client-id", "your-client-secret")
8 .url("https://api.example.com")
9 .build();