Webman AI發(fā)布3.7,支持以下特性
http://www.wtbis.cn/ai
https://bla.cn
提示
因為注冊Azure OpenAI贈送了1400¥的額度,需要這個月用完,所以我們開放了GPT4角色,每個用戶每天可以問20個GPT4提問,額度用完為止。
注冊地址:https://azure.microsoft.com/zh-cn/
https://makersuite.google.com/app/apikey
測試對比Gemini-pro要比GPT3.5聰明一些
webmnan AI QQ交流群 789898358
歡迎加入
前提:
1 有visa或Mastercard的信用卡
2 有自己的域名郵箱
https://aka.ms/oaiapply
填寫后24小時內(nèi)收到回復(fù),收到通過郵件才能走下一步
https://portal.azure.com/ 頁面左上角升級按鈕
west US 有GPT4服務(wù),有些區(qū)域沒有GPT4服務(wù)。然后點擊下一步繼續(xù)其它設(shè)置,使用默認(rèn)值即可。
{
"gpt-4": "gpt-4",
"gpt-3.5-turbo-0613": "gpt-35-turbo",
"gpt-3.5-turbo": "gpt-35-turbo",
"gpt-3.5-turbo-16k": "gpt-35-turbo",
"gpt-3.5-turbo-1106": "gpt-35-turbo",
"gpt-4-vision-preview": "gpt-4-vision",
"gpt-4-1106-preview": "gpt-4",
"gpt-4-32k": "gpt-4"
}
老大,今天早上更新user插件后,發(fā)現(xiàn)gpt4和Dall.e都出現(xiàn)下面錯誤:
You didn't provide an API key.
You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY),
or as the password field (with blank username) if you're accessing the API from your browser
and are prompted for a username and password.
You can obtain an API key from https://platform.openai.com/account/api-keys.
使用Azure OpenAI接口,3.5正常,去官網(wǎng)作圖也正常。不知為啥
Azure設(shè)置:{
"gpt-3.5-turbo": "gpt-35-turbo",
"gpt-3.5-turbo-0613": "gpt-35-turbo",
"gpt-3.5-turbo-16k": "gpt-35-turbo",
"gpt-3.5-turbo-1106": "gpt-35-turbo",
"gpt-4": "gpt-4",
"gpt-4-32k": "gpt-4-32k",
"gpt-4-1106-preview": "gpt-4",
"dall.e": "dall-e-3"
}
模型配置:
{
"gpt-3.5-turbo": "gpt-3.5-turbo",
"gpt-3.5-turbo-1106": "gpt-3.5-turbo-1106",
"gpt-3.5-turbo-16k": "gpt-3.5-turbo-16k",
"gpt-4": "gpt-4",
"gpt-4-32k": "gpt-4-32k",
"gpt-4-vision-Preview": "gpt-4-vision-preview",
"gemini-pro": "谷歌Gemini",
"qwen-plus": "通義千問",
"ernie-bot-turbo": "文心一言",
"ernie-bot-4": "文心一言4.0",
"spark": "訊飛星火",
"chatglm": "清華智普",
"dall.e": "DALL.E作圖"
}
后臺沒看出什么問題,得到服務(wù)器上打印日志查看。
plugin/ai/app/modelHandler/Gpt3.php 里 __construct 方法,看下為什么沒有進(jìn)入 azure 分支
對比了一下,message文件的191行$handler = new $handler($request, $model);我這邊成了:$handler = new $handler($request);