mirror of
https://github.com/syuilo/ai.git
synced 2025-01-31 15:39:10 +00:00
aichatにGeminiを使用したときにうまく返答できないバグを修正 (#157)
This commit is contained in:
parent
24ef7e6e94
commit
1dbf7a2940
1 changed files with 0 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue