Comments (15)
关于这个如果响应了在微信或者qq不也没办法展示么
from pandoratov1api.
是,但是我设置的反代的域名可以直接在微信点开查看图片呢~
from pandoratov1api.
嗯 主要是有点丑,我想想这个怎么给你单独一个功能吧,可以单独给这个开一个环境变量也许?
from pandoratov1api.
该功能已支持,请拉取最新版试用(最新版目录结构有所改变,请注意)
from pandoratov1api.
"bot_mode": {
"enabled": "true",
"enabled_markdown_image_output": "true",
"enabled_bing_reference_output": "true",
"enabled_plugin_output": "false"
这样设置 之后,bot依然没有链接:
![image](https://private-user-images.githubusercontent.com/84770364/292657615-dc1fe0b9-ff3a-49a1-9f5b-c4db72d64b76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQyNTk3MzgsIm5iZiI6MTcxNDI1OTQzOCwicGF0aCI6Ii84NDc3MDM2NC8yOTI2NTc2MTUtZGMxZmUwYjktZmYzYS00OWExLTlmNWItYzRkYjcyZDY0Yjc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDI3VDIzMTAzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwYWI4Nzg0NmNmMDJlMDI0MmMyZmQwZDMyMDk1MGQ1ZGIxNGQ4ZmE3NWZlOGI1YjU4MDcxZWM0ZDNjOGUyMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dGVrY8vL9WGOh7Sslas0w0hWeHxvQDlN5jGrYLAryX0)
from pandoratov1api.
看一下access日志里有没有报错什么的
from pandoratov1api.
`023-12-24 06:41:25,533 [INFO] - New Request
2023-12-24 06:41:25,534 [INFO] - api_key: ****
2023-12-24 06:41:25,535 [INFO] - model: gpt-4
2023-12-24 06:41:25,535 [INFO] - 原模型名: gpt-4-mobile
2023-12-24 06:41:25,535 [DEBUG] - payload: {'action': 'next', 'messages': [{'id': '', 'author': {'role': 'system'}, 'content': {'content_type': 'text', 'parts': ['你是一个人工智能助手']}, 'metadata': {}}, {'id': ‘, 'author': {'role': 'user'}, 'content': {'content_type': 'text', 'parts': ['你好']}, 'metadata': {}}, {'id': ‘’, 'author': {'role': 'user'}, 'content': {'content_type': 'text', 'parts': ['帮我画一个圣诞老人真人版本的在送礼物']}, 'metadata': {}}, {'id': ‘’, 'author': {'role': 'user'}, 'content': {'content_type': 'text', 'parts': ['帮我画一个圣诞老人真人版本的在送礼物']}, 'metadata': {}}, {'id': '', 'author': {'role': 'user'}, 'content': {'content_type': 'text', 'parts': ['帮我画一个圣诞老人真人版本在天空中送礼物']}, 'metadata': {}}], 'parent_message_id': '', 'model': 'gpt-4-mobile', 'timezone_offset_min': -480, 'suggestions': ['Give me 3 ideas about how to plan good New Years resolutions. Give me some that are personal, family, and professionally-oriented.', 'Write a text asking a friend to be my plus-one at a wedding next month. I want to keep it super short and casual, and offer an out.', 'Design a database schema for an online merch store.', 'Compare Gen Z and Millennial marketing strategies for sunglasses.'], 'history_and_training_disabled': False, 'conversation_mode': {'kind': 'primary_assistant'}, 'force_paragen': False, 'force_rate_limit': False}
2023-12-24 06:41:25,539 [DEBUG] - Starting new HTTP connection (1): 172.17.0.1:8181
2023-12-24 06:41:26,448 [DEBUG] - http://172.17.0.1:8181 "POST /prefix/backend-api/conversation HTTP/1.1" 200 None
content_type: text
last_content_type: None
content_type: text
last_content_type: None
content_type: text
last_content_type: None
content_type: text
last_content_type: None
content_type: text
last_content_type: None
content_type: text
last_content_type: None
content_type: code
last_content_type: None
2023-12-24 06:41:26,454 [INFO] - 发送消息:
2023-12-24 06:41:26,455 [DEBUG] - message 为空: data_json: {'conversation_id': '', 'message_id': '', 'is_completion': False, 'moderation_response': {'flagged': False, 'blocked': False, 'moderation_id': '***'}}
content_type: None
last_content_type: code
2023-12-24 06:41:26,455 [INFO] - 当前会话id: ***
2023-12-24 06:41:26,455 [INFO] - 发送消息:
content_type: code
last_content_type: code
2023-12-24 06:41:26,456 [INFO] - 发送消息:
content_type: code
last_content_type: code
···
2023-12-24 06:41:29,237 [INFO] - 发送消息:
content_type: code
last_content_type: code
content_type: code
last_content_type: code
content_type: code
last_content_type: code
content_type: multimodal_text
last_content_type: code
2023-12-24 06:41:42,824 [DEBUG] - find img message~
2023-12-24 06:41:42,824 [DEBUG] - asset_pointer: file-tNtxe3VAFgbP9cvoZnvpwBg7
2023-12-24 06:41:42,827 [DEBUG] - Starting new HTTP connection (1): 172.17.0.1:8181
2023-12-24 06:41:42,933 [DEBUG] - http://172.17.0.1:8181 "GET /prefix/backend-api/files/file-tNtxe3VAFgbP9cvoZnvpwBg7/download HTTP/1.1" 200 457
2023-12-24 06:41:42,934 [DEBUG] - download_url: https://files.oaiusercontent.com/file-tNtxe3VAFgbP9cvoZnvpwBg7?se=2023-12-24T06%3A46%3A42Z&sp=r&sv=2021-08-06&sr=b&rscc=max-age%3D31536000%2C%20immutable&rscd=attachment%3B%20filename%3Da88d9dd1-ffb1-4adc-b523-d2df699966fd.webp&sig=mwL5W%2BX/L3e3eSfkEEwey5nBq7v9U8aX9rT4IuH1d2U%3D
2023-12-24 06:41:42,939 [DEBUG] - Starting new HTTPS connection (1): files.oaiusercontent.com:443
2023-12-24 06:41:43,064 [DEBUG] - https://files.oaiusercontent.com:443 "GET /file-tNtxe3VAFgbP9cvoZnvpwBg7?se=2023-12-24T06%3A46%3A42Z&sp=r&sv=2021-08-06&sr=b&rscc=max-age%3D31536000%2C%20immutable&rscd=attachment%3B%20filename%3Da88d9dd1-ffb1-4adc-b523-d2df699966fd.webp&sig=mwL5W%2BX/L3e3eSfkEEwey5nBq7v9U8aX9rT4IuH1d2U%3D HTTP/1.1" 200 664688
2023-12-24 06:41:43,078 [DEBUG] - 下载图片成功
2023-12-24 06:41:43,078 [DEBUG] - 完整的文件路径: images/image_20231224064143.png
content_type: text
last_content_type: multimodal_text
content_type: text
last_content_type: multimodal_text
content_type: text
last_content_type: text
content_type: text
last_content_type: text
content_type: text
last_content_type: text
2023-12-24 06:41:43,829 [DEBUG] - 保存图片成功: image_20231224064143.png
2023-12-24 06:41:43,831 [DEBUG] - new_text:
2023-12-24 06:41:43,831 [INFO] - 发送消息:
2023-12-24 06:41:43,831 [DEBUG] - 无视消息:
2023-12-24 06:41:43,832 [INFO] - 发送消息:
2023-12-24 06:41:43,832 [INFO] - 发送消息: Here
2023-12-24 06:41:43,833 [INFO] - 发送消息: is
2023-12-24 06:41:43,833 [INFO] - 发送消息: the
content_type: text
last_content_type: text
2023-12-24 06:41:43,927 [INFO] - 发送消息: image
content_type: text
last_content_type: text
2023-12-24 06:41:44,063 [INFO] - 发送消息: of
content_type: text
last_content_type: text
2023-12-24 06:41:44,079 [INFO] - 发送消息: a
content_type: text
last_content_type: text
2023-12-24 06:41:44,101 [INFO] - 发送消息: realistic
content_type: text
last_content_type: text
2023-12-24 06:41:44,132 [INFO] - 发送消息: Santa
content_type: text
last_content_type: text
2023-12-24 06:41:44,144 [INFO] - 发送消息: Claus
content_type: text
last_content_type: text
2023-12-24 06:41:44,169 [INFO] - 发送消息: delivering
content_type: text
last_content_type: text
2023-12-24 06:41:44,186 [INFO] - 发送消息: gifts
content_type: text
last_content_type: text
2023-12-24 06:41:44,214 [INFO] - 发送消息: in
content_type: text
last_content_type: text
2023-12-24 06:41:44,233 [INFO] - 发送消息: the
content_type: text
last_content_type: text
2023-12-24 06:41:44,260 [INFO] - 发送消息: sky
content_type: text
last_content_type: text
2023-12-24 06:41:44,272 [INFO] - 发送消息: ,
content_type: text
last_content_type: text
2023-12-24 06:41:44,293 [INFO] - 发送消息: as
content_type: text
last_content_type: text
2023-12-24 06:41:44,320 [INFO] - 发送消息: you
content_type: text
last_content_type: text
2023-12-24 06:41:44,337 [INFO] - 发送消息: requested
content_type: text
last_content_type: text
2023-12-24 06:41:44,359 [INFO] - 发送消息: .
content_type: text
last_content_type: text
content_type: text
last_content_type: text
content_type: text
last_content_type: text
2023-12-24 06:41:44,645 [DEBUG] - message 为空: data_json: {'conversation_id': '', 'message_id': '', 'is_completion': True, 'moderation_response': {'flagged': False, 'blocked': False, 'moderation_id': ''}}
content_type: None
last_content_type: text
2023-12-24 06:41:44,645 [INFO] - 发送消息:
2023-12-24 06:41:44,683 [INFO] - 发送数据: data: [DONE]
2023-12-24 06:41:44,683 [INFO] - 会话结束
2023-12-24 06:41:44,684 [INFO] - 完整消息: Here is the image of a realistic Santa Claus delivering gifts in the sky, as you requested.
2023-12-24 06:41:44,684 [DEBUG] - 会话结束-外层
2023-12-24 06:41:45,474 [INFO] - 准备删除的会话id: ***
2023-12-24 06:41:45,479 [DEBUG] - Starting new HTTP connection (1): 172.17.0.1:8181
2023-12-24 06:41:45,653 [DEBUG] - http://172.17.0.1:8181 "PATCH /prefix/backend-api/conversation/ HTTP/1.1" 200 16
2023-12-24 06:41:45,654 [INFO] - 删除会话 *** 成功
172.19.0.1 - - [24/Dec/2023:06:41:45 +0000] "POST /prefix/v1/chat/completions HTTP/1.1" 200 390 "-" "OpenAI/v1 PythonBindings/0.27.8"
`
日志如上,中间删减了很多重复的
from pandoratov1api.
感谢,我检查一下代码这部分
from pandoratov1api.
确实是bug,已经定位问题了,晚点会发一版解决这个问题,感谢
from pandoratov1api.
0.3.1和latest最新版的镜像已经推送了,可以先试试,问题应该解决了,晚点再发release
from pandoratov1api.
from pandoratov1api.
可以在关注一下待会发的版本,打算待会再发一个0.3.2,图片在机器人模式下还要输出图片的话增加一个配置项可以支持不显示为markdown格式而是“图片链接: https://xxxxxxx”这样
from pandoratov1api.
感谢~已经很完美了哈哈,精益求精
from pandoratov1api.
哈哈力求完美
from pandoratov1api.
感受一下hh
from pandoratov1api.
Related Issues (20)
- 请问能否实现直接读取图片或文件的外链 然后实现上传文件 HOT 7
- 还有一个BUG,会偶现steam流中的message返回一直是空的情况,暂时没想到这个是什么导致的,这会导致最后消息是None,从而在计算Token的时候产生异常 HOT 6
- 请问图片链接获取不全是什么原因? HOT 2
- 请教一个问题 HOT 2
- 初步尝试有问题,返回了{"message":"Welcome to Inker's World"} HOT 8
- 使用curl无法联通 HOT 4
- 请教下关于上下文的问题 HOT 2
- 如果在输出过程中被中断,在web端的对话记录不会被删除 HOT 13
- 有没有考虑过定期刷新FK? HOT 3
- 部分plus账户无法正常使用 HOT 8
- 风控最近收紧了? HOT 5
- 如果plus掉了之后,使用gpt-4-mobile模型会默认转向gpt-3.5 HOT 2
- 是否可以对接ninja HOT 1
- 可以fork一份做一个专门对接ninja的吗 HOT 17
- 打扰一下,最新0.7.4的版本每隔30s会有这样一条日志,是正常的吗? HOT 7
- key_for_gpts_info参数是否可以不提供 HOT 3
- 大神,谁能给个使用攻略,跪谢
- 有偿寻求一份比较全面的gpts.json HOT 4
- 打扰一下,最近使用3.5对话的时候总是最后几个字显示不全,您有时间的时候能否帮忙看看哪里有问题。
- 文件上传接口问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoratov1api.