Skip to content
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

Merged
merged 13 commits into from
Nov 20, 2023
Merged

Conversation

Leizhenpeng
Copy link
Member

@Leizhenpeng Leizhenpeng commented Nov 16, 2023

描述

支持GPT4V,视觉识别
https://platform.openai.com/docs/guides/vision

使用方法

输入任意图片,或者文字指令'图片推理' 即可进入图片推理模式

三个模式

一张图---解释图片内容
一张图+文字 --- 用文字推理单张图片
多张图+文字 ---- 用文字推理多张图片

image

@Leizhenpeng Leizhenpeng self-assigned this Nov 16, 2023
@@ -24,7 +24,7 @@ func init() {
//WarnLevel
//InfoLevel
//DebugLevel
logger.Level = logrus.InfoLevel
logger.Level = logrus.DebugLevel

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方没必要改吧

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还在测试,,, 这是draft pr

@@ -18,6 +18,9 @@ import (

type PlatForm string

const (
MaxRetries = 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是把MaxRetries的值改掉了?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还在测试~

@Leizhenpeng Leizhenpeng merged commit 79dd756 into master Nov 20, 2023
1 check passed
@Leizhenpeng Leizhenpeng changed the title feat: 支持gpt4v 「WIP」 feat: 新增图片推理模式已支持gpt4v Nov 20, 2023
@Leizhenpeng Leizhenpeng changed the title feat: 新增图片推理模式已支持gpt4v feat: 新增图片推理模式来支持gpt4v Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants