aichatにGeminiを使用したときにうまく返答できないバグを修正 (#157)

This commit is contained in:
Genki.Takeuchi 2025-01-05 20:42:00 +09:00 committed by GitHub
parent 24ef7e6e94
commit 1dbf7a2940
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,7 +127,6 @@ export default class extends Module {
try {
res_data = await got.post(options,
{parseJson: (res: string) => JSON.parse(res)}).json();
{parseJson: res => JSON.parse(res)}).json();
this.log(JSON.stringify(res_data));
if (res_data.hasOwnProperty('candidates')) {
if (res_data.candidates.length > 0) {