从新提交到gitee 仓库

This commit is contained in:
qcloud
2025-02-06 23:34:26 +08:00
parent e678819f70
commit c88312a914
62 changed files with 211935 additions and 7500 deletions

View File

@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import logging
import re
from openai.lib.azure import AzureOpenAI
@@ -321,6 +322,7 @@ class ZhipuChat(Base):
if "frequency_penalty" in gen_conf: del gen_conf["frequency_penalty"]
ans = ""
tk_count = 0
# logging.info(f"chat_streamly messages={history}") # cyx
try:
response = self.client.chat.completions.create(
model=self.model_name,