获取客户端key
This commit is contained in:
@@ -65,8 +65,8 @@ public class CommonServiceImpl implements ICommonService {
|
|||||||
// 解析响应为实体类
|
// 解析响应为实体类
|
||||||
System.out.println(JSONUtil.toJsonStr(response.body()));
|
System.out.println(JSONUtil.toJsonStr(response.body()));
|
||||||
Map entity = JSONUtil.toBean(response.body(), Map.class);
|
Map entity = JSONUtil.toBean(response.body(), Map.class);
|
||||||
dto.setClientSecret(entity.get("value").toString());
|
dto.setClientSecret(entity.get("id").toString());
|
||||||
dto.setExpiresAt(Long.valueOf(entity.get("expires_at").toString()));
|
// dto.setExpiresAt(Long.valueOf(entity.get("expires_at").toString()));
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ chatGpt:
|
|||||||
apiUrl: https://api.openai.com/v1/chat/completions
|
apiUrl: https://api.openai.com/v1/chat/completions
|
||||||
model: ft:gpt-3.5-turbo-0125:vetti:construction-labourer-test:CWKBNvE2
|
model: ft:gpt-3.5-turbo-0125:vetti:construction-labourer-test:CWKBNvE2
|
||||||
role: system
|
role: system
|
||||||
apiClientTokenUrl: https://api.openai.com/v1/realtime/client_secrets
|
apiClientTokenUrl: https://api.openai.com/v1/realtime/sessions
|
||||||
|
|
||||||
|
|
||||||
http:
|
http:
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ chatGpt:
|
|||||||
apiUrl: https://api.openai.com/v1/chat/completions
|
apiUrl: https://api.openai.com/v1/chat/completions
|
||||||
model: ft:gpt-3.5-turbo-0125:vetti:construction-labourer-test:CWKBNvE2
|
model: ft:gpt-3.5-turbo-0125:vetti:construction-labourer-test:CWKBNvE2
|
||||||
role: system
|
role: system
|
||||||
apiClientTokenUrl: https://api.openai.com/v1/realtime/client_secrets
|
apiClientTokenUrl: https://api.openai.com/v1/realtime/sessions
|
||||||
|
|
||||||
|
|
||||||
http:
|
http:
|
||||||
|
|||||||
Reference in New Issue
Block a user