获取客户端key

This commit is contained in:
2025-11-01 22:09:39 +08:00
parent 47e97e2ecf
commit 079e7b53f1
3 changed files with 4 additions and 4 deletions

View File

@@ -65,8 +65,8 @@ public class CommonServiceImpl implements ICommonService {
// 解析响应为实体类
System.out.println(JSONUtil.toJsonStr(response.body()));
Map entity = JSONUtil.toBean(response.body(), Map.class);
dto.setClientSecret(entity.get("value").toString());
dto.setExpiresAt(Long.valueOf(entity.get("expires_at").toString()));
dto.setClientSecret(entity.get("id").toString());
// dto.setExpiresAt(Long.valueOf(entity.get("expires_at").toString()));
}
} catch (Exception e) {
e.printStackTrace();

View File

@@ -169,7 +169,7 @@ chatGpt:
apiUrl: https://api.openai.com/v1/chat/completions
model: ft:gpt-3.5-turbo-0125:vetti:construction-labourer-test:CWKBNvE2
role: system
apiClientTokenUrl: https://api.openai.com/v1/realtime/client_secrets
apiClientTokenUrl: https://api.openai.com/v1/realtime/sessions
http:

View File

@@ -169,7 +169,7 @@ chatGpt:
apiUrl: https://api.openai.com/v1/chat/completions
model: ft:gpt-3.5-turbo-0125:vetti:construction-labourer-test:CWKBNvE2
role: system
apiClientTokenUrl: https://api.openai.com/v1/realtime/client_secrets
apiClientTokenUrl: https://api.openai.com/v1/realtime/sessions
http: