XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Support Python 3.8

f82a60df
Heiner Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified g4f/Provider/Bing.py +2 -2
@@ -408,14 +408,14 @@ def create_message(conversation: Conversation, prompt: str, tone: str, context:
408 408 'traceId': os.urandom(16).hex(),
409 409 'isStartOfSession': True,
410 410 'requestId': request_id,
411 'message': Defaults.location | {
411 'message': {**Defaults.location, **{
412 412 'author': 'user',
413 413 'inputMethod': 'Keyboard',
414 414 'text': prompt,
415 415 'messageType': 'Chat',
416 416 'requestId': request_id,
417 417 'messageId': request_id,
418 },
418 }},
419 419 "scenario": "SERP",
420 420 'tone': tone,
421 421 'spokenTextMode': 'None',