从新提交到gitee 仓库
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user