Skip to content

Commit

Permalink
test: Gemini 2nd
Browse files Browse the repository at this point in the history
  • Loading branch information
gensart-ai committed Feb 18, 2024
1 parent 8651133 commit 828a98c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/external/gemini.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios from 'axios'
import axios, { AxiosError } from 'axios'
import * as wweb from '@utils/wweb'
import { Executor } from '@/command-hive'
import config from '@/env'
Expand Down Expand Up @@ -113,7 +113,7 @@ const geminiTextOnly: Executor = async (client, message) => {
}
} catch (error) {
// wweb.replyMessage(message, 'Maaf, terjadi kesalahan saat menjawab pertanyaan anda. Silahkan coba lagi');
wweb.replyMessage(message, (error as Error).message + ' at ' + (error as Error).name);
wweb.replyMessage(message, (error as Error).message + ' at ' + (error as AxiosError).stack);
}
}

Expand Down

0 comments on commit 828a98c

Please sign in to comment.