-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 新增图片推理模式来支持gpt4v #265
Conversation
# Conflicts: # code/handlers/msg.go
code/logger/logger.go
Outdated
@@ -24,7 +24,7 @@ func init() { | |||
//WarnLevel | |||
//InfoLevel | |||
//DebugLevel | |||
logger.Level = logrus.InfoLevel | |||
logger.Level = logrus.DebugLevel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个地方没必要改吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还在测试,,, 这是draft pr
code/services/openai/common.go
Outdated
@@ -18,6 +18,9 @@ import ( | |||
|
|||
type PlatForm string | |||
|
|||
const ( | |||
MaxRetries = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是把MaxRetries的值改掉了?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还在测试~
描述
支持GPT4V,视觉识别
https://platform.openai.com/docs/guides/vision
使用方法
输入任意图片,或者文字指令'图片推理' 即可进入
图片推理模式
三个模式
一张图---解释图片内容
一张图+文字 --- 用文字推理单张图片
多张图+文字 ---- 用文字推理多张图片