mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-02-19 09:07:02 +08:00
14 lines
366 B
Python
14 lines
366 B
Python
from bot import bot_factory
|
|
from voice import voice_factory
|
|
|
|
|
|
class Bridge(object):
|
|
def __init__(self):
|
|
pass
|
|
|
|
def fetch_reply_content(self, query, context):
|
|
return bot_factory.create_bot("chatGPT").reply(query, context)
|
|
|
|
def fetch_voice_to_text(self, voiceFile):
|
|
return voice_factory.create_voice("google").voiceToText(voiceFile)
|