获取客户端key
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user