mirror of
https://github.com/Yanyutin753/RefreshToV1Api.git
synced 2025-10-20 02:16:11 +00:00
⭐feat gpt-4-o 支持上传文件
This commit is contained in:
3
.idea/misc.xml
generated
3
.idea/misc.xml
generated
@@ -1,4 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
|
<component name="Black">
|
||||||
|
<option name="sdkName" value="Python 3.8 (pythonProject7)" />
|
||||||
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (pythonProject7)" project-jdk-type="Python SDK" />
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (pythonProject7)" project-jdk-type="Python SDK" />
|
||||||
</project>
|
</project>
|
4
main.py
4
main.py
@@ -338,7 +338,7 @@ scheduler.start()
|
|||||||
|
|
||||||
VERSION = '0.7.9.2'
|
VERSION = '0.7.9.2'
|
||||||
# VERSION = 'test'
|
# VERSION = 'test'
|
||||||
UPDATE_INFO = '支持最新的gpt-4-o模型'
|
UPDATE_INFO = '支持最新的gpt-4-o模型,且支持上传文件'
|
||||||
# UPDATE_INFO = '【仅供临时测试使用】 '
|
# UPDATE_INFO = '【仅供临时测试使用】 '
|
||||||
|
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
@@ -724,7 +724,7 @@ def send_text_prompt_and_get_response(messages, api_key, account_id, stream, mod
|
|||||||
message_id = str(uuid.uuid4())
|
message_id = str(uuid.uuid4())
|
||||||
content = message.get("content")
|
content = message.get("content")
|
||||||
|
|
||||||
if isinstance(content, list) and ori_model_name not in ['gpt-3.5-turbo', 'gpt-4-o']:
|
if isinstance(content, list) and ori_model_name not in ['gpt-3.5-turbo']:
|
||||||
logger.debug(f"gpt-vision 调用")
|
logger.debug(f"gpt-vision 调用")
|
||||||
new_parts = []
|
new_parts = []
|
||||||
attachments = []
|
attachments = []
|
||||||
|
Reference in New Issue
Block a user