mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
parent
98a71b38ec
commit
fdbb7517b3
2 changed files with 1 additions and 3 deletions
|
|
@ -25,8 +25,7 @@ class LLMProvider(LLMProviderBase):
|
|||
# 初始化Gemini客户端
|
||||
# 配置代理(如果提供了代理配置)
|
||||
self.proxies = None
|
||||
if self.http_proxy is not "" or self.https_proxy is not "":
|
||||
|
||||
if self.http_proxy or self.https_proxy:
|
||||
self.proxies = {
|
||||
"http": self.http_proxy,
|
||||
"https": self.https_proxy,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import asyncio
|
|||
from config.logger import setup_logging
|
||||
import os
|
||||
from abc import ABC, abstractmethod
|
||||
from core.utils.tts import MarkdownCleaner
|
||||
from core.utils.util import audio_to_opus_data
|
||||
from core.utils.tts import TextFormater
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue