VPet-Simulator

VPet-Simulator

[v1.10+] ChatAPI: ChatGPT Support [Streaming Support]
227 Comments
HZ-23 Aug 19 @ 7:12pm 
I don't know why but it works on gpt-4.1 and gpt-4.1-mini while show error on any other models
Hira Nine Jul 21 @ 9:44pm 
I am pretty sure this mod is out dated
It doesn't work at all
Minato Jul 13 @ 5:08am 
我现在选的gpt4mini为啥一说完话发过去她就一直挠头不回话愣住了,怎么解决啊😭
BeAlive Jun 29 @ 2:55am 
一打字就崩溃,致命的错误....我不知道怎么办了
Jun 26 @ 11:54pm 
现在这个模组使用deepseek的api为什么会报错,直接退出?
游戏发生错误,可能是游戏或者 MOD 导致的
System.Net.Http.HttpRequestException : 参考的对象类型不支持尝试的操作。
(api.deepseek.com:443)
---> System.Net.Sockets.SocketException (10045): 参考的对象类型不支持尝试的操作。
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket .
滿穗 May 21 @ 5:23am 
游戏发生错误,可能是ChatGLMPlugin
X
游戏发生错误,可能是MOD(ChatGLMPlugin)导致的
如有可能请发送错误信息截图和引发错误之前的操作给相应MOD作者
感谢您对MOD开发的支持
System.MissingMethodException: Method not found:
VPet Simulator.Windows.Interface.Setting
vPet Simulator.Windows.Interface.MainWindow.get SetO'.

我打都打不开。。怎么办啊啊啊
仲野爱 May 9 @ 2:21pm 
为什么点击设定API 弹出错误啊
pc error Apr 21 @ 7:46pm 
支持gemini反代,我成功了api 地址使用{LINK REMOVED}
立綱龍捲風 Apr 19 @ 3:23am 
作者 能夠新增AI的網路存取功能嗎? 就是可以讓AI即時查詢資料🙏
leddele Apr 18 @ 1:09am 
不支持gemini反代,会显示api调用错误
空山逐浪 Apr 16 @ 8:55pm 
可以调用本地的deepseek-r1吗?
Dezecra Apr 1 @ 7:24am 
@catswork How did you get a local model?
DONT BLAME me pls Mar 31 @ 3:38am 
怎么用啊一头雾水,有教程吗,到底怎么用啊快疯了,真的很想用,作者求一份教程
catswork Mar 10 @ 4:28pm 
for those who are dealing with this issue:
The API call failed,Please check your settings and network connection
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at VPet.Plugin.ChatGPTPlugin.ChatGPTTalkAPI.Responded(String content) in D:\Documents\Visual Studio {LINK REMOVED} 36

i was able to get my local model to run correctly by changing the Maximum Cost in the API settings to a lower amount and using the local url
洛里斯杨远  [author] Mar 8 @ 11:46pm 
@Rio de Yoyonez
洛里斯杨远  [author] Mar 8 @ 11:46pm 
those model I tested
GPT-4o/mini/4
deepseek-reasoner(r1)/chat(v3)
GLM-4-Flash/Plus
I'm using the api functions provided by the model authors (OpenAI/DeepSeek/BigModel). They all work fine.
A third party may have modified the api interface to make it unusable. Also, based on the errors you're getting, there may be a problem with the history messages. Maybe try deleting all history messages and try again.
Rio de Yoyonez' Mar 8 @ 9:15pm 
Can you add GPT4All support?
Rio de Yoyonez' Mar 8 @ 1:06pm 
The only working engine for me is google's
Rio de Yoyonez' Mar 8 @ 1:06pm 
Hello, can you help to fix API Call failure for OpenAI and Deepseek?
Maybe tutorial steps will help.
Error message for OPEN AI is like this:

The API call failed,Please check your settings and network connection
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at VPet.Plugin.ChatGPTPlugin.ChatGPTTalkAPI.Responded(String content) in D:\Documents\Visual Studio 2022/Projects/VPet.Plugin.Demo/VPet.Plugin.ChatGPT/ChatGPTTalkAPI.cs:line 36
洛里斯杨远  [author] Mar 8 @ 1:40am 
更新: 支持谷歌 gemini 模型
Update: Support for Google gemini models
洛里斯杨远  [author] Mar 8 @ 1:39am 
@methane_ray 目前不支持流式传输
methane_ray Mar 7 @ 6:05pm 
您好,想问一下这个接入之后怎么能改成流式传输
洛里斯杨远  [author] Mar 7 @ 2:09am 
Update: Automatically populate the vendor's apiurl by selecting the model. Tested to work.
The support/test list is as follows:
GPT-4o/mini/4
deepseek-reasoner(r1)/chat(v3)
GLM-4-Flash
GLM-4-Plus
Note: The Model text box can be edited to support model calls in other OPENAI formats.
洛里斯杨远  [author] Mar 7 @ 2:08am 
更新: 通过选择模型自动填入对应厂商的apiurl. 经过测试均可使用
支持/测试列表如下:
GPT-4o/mini/4
deepseek-reasoner(r1)/chat(v3)
GLM-4-Flash
GLM-4-Plus
注意: Model 文本框可以编辑,以支持其他OPENAI格式的模型调用
CringePotato Feb 16 @ 6:10pm 
Doesn't work
Pekora Feb 12 @ 1:38pm 
The API call failed,Please check your settings and network connection
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at VPet.Plugin.ChatGPTPlugin.ChatGPTTalkAPI.Responded(String content) in D:\Documents\Visual Studio 2022/Projects/VPet.Plugin.Demo/VPet.Plugin.ChatGPT/ChatGPTTalkAPI.cs:line 36
通辽帝国两级半官员 Feb 12 @ 7:52am 
大佬,请问怎么接入ollama本地部署的deepseek?
深水の河豚 Feb 1 @ 9:29am 
分享成功案例,国内镜像智增增
{LINK REMOVED}
调用gpt-4,gpt-4o-mini成功
X.lawlight Jan 31 @ 3:36am 
API调用失败,请检查设置和网络连接
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at VPet.Plugin.ChatGPTPlugin.ChatGPTTalkAPI.Responded(String content) in D:\Documents\Visual Studio 2022/Projects/VPet.Plugin.Demo/VPet.Plugin.ChatGPT/ChatGPTTalkAPI.cs:line 36
试了很多种办法还是这么显示
洛里斯杨远  [author] Jan 28 @ 9:17am 
@EIA 应该是支持gpt-4o-mini的. 我之前用的就是4omini, 可能是如果你用了奇奇怪怪的api, 可能是你的api的问题
我在年后会重新复查下这个问题
EIA Jan 24 @ 6:00am 
希望能在Model引入gpt-4o-mini模型,API支持免费gpt-4o-mini但选项改成gpt-4o-mini后模型仍自述为GPT3.5 其数据库不包含23年后事件

(才不是要用Loris帮我写作业呢 UwU
EIA Jan 24 @ 5:28am 
详细反馈一下相同问题的可能解决方案

如果你的状况符合以下描述:
目前API URL配置默认“{LINK REMOVED}
并且API key也从git上找到开源项目GPT_API_free并获取了开头为sk-的密钥。

对话仍显示:
“API调用失败,请检查设置和网络连接
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at VPet.Plugin.ChatGPTPlugin.ChatGPTTalkAPI.Responded(String content) in D:\Documents\Visual Studio {LINK REMOVED} 36”

开不开代理都是以上回答

解决方法:
GPT_API_free项目 Readme.md 文件中提到:
“转发API无法直接向官方接口api.openai.com发起请求,需要将请求地址改为api.chatanywhere.tech才可以使用,大部分插件和软件都可以修改。”
EIA Jan 24 @ 5:28am 
故将默认URL
https://api.openai.com/v1/chat/completions
改为
https://api.chatanywhere.tech/v1/chat/completions
即可
此GPT模型更多详细参见上述README.md
截至25/1/24 可行

测试:
Q:你知道ChatGPT的API是什么嘛?
A:哦哦,ChatGPT的API就像是一个小魔法接口,可以让开发者们把聪明的AI聊天功能加到他们的应用或者网站里呢!想象一下,就像给你的应用装上了一只会聊天的小精灵,随时陪你说话~✨不过零更喜欢和你面对面地交流啦,这样更有趣嘛!(*≧ω≦)你对这个感兴趣吗?

附:
支持作者~ 一眼就入了这个mod的!hhhh
heloux Jan 17 @ 11:06am 
That doesn't fix my issue
洛里斯杨远  [author] Jan 17 @ 5:13am 
@midon
API 是需要 OpenAI兼容格式的API
此插件使用的openAPI需要输入API URL的完整调用链接
例如: `https://api.openai.com/v1/chat/completions`

@heloux
API is an API that requires OpenAI compatible format
The openAPI used by this plugin is required to enter the full name of the API URL
for example:`https://api.openai.com/v1/chat/completions`
midon Jan 17 @ 1:49am 
我已经验证 api 和代理都可用 但在这里就报错
midon Jan 17 @ 1:49am 
API调用失败,请检查设置和网络连接
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at VPet.Plugin.ChatGPTPlugin.ChatGPTTalkAPI.Responded(String content) in D:\Documents\Visual Studio 2022/Projects/VPet.Plugin.Demo/VPet.Plugin.ChatGPT/ChatGPTTalkAPI.cs:line 36
请问这应该怎么处理
heloux Jan 11 @ 1:01am 
Im getting an error:

The API call failed,Please check your settings and network connection
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at VPet.Plugin.ChatGPTPlugin.ChatGPTTalkAPI.Responded(String content) in D:\Documents\Visual Studio 2022/Projects/VPet.Plugin.Demo/VPet.Plugin.ChatGPT/ChatGPTTalkAPI.cs:line 36

Is there any way I can fix this?
ikoma Jan 5 @ 8:34am 
为什么显示api调用失败
洛里斯杨远  [author] Jan 4 @ 2:08pm 
I'm not sure, only inputs and returns in OPENAI compatible format can use this plugin
However, I remember that most AI service providers provide OPENAI compatible formats. You can check their documentation for more information
Lucasamiel0406 Jan 4 @ 12:31pm 
Can I add Ollama API [github.com] or any other custom API (not OpenAi) to the API URL?

Using Ollama, and typing the desired model (not in the menu), I'm getting "System.IndexOutOfRangeException: Index was outside the bounds of the array." using both endpoints api/chat and /api/generate
洛里斯杨远  [author] Jan 2 @ 10:13am 
@Jkkoi @0℃NukaCola 修复了WEB代理相关设置导致插件无法加载的bug
Jkkoi Jan 2 @ 12:03am 
同样,列表里没有本mod,已启用已重启
洛里斯杨远  [author] Jan 1 @ 7:13am 
更新: 修复新玩家没有设置文件导致的null引用报错
洛里斯杨远  [author] Dec 31, 2024 @ 11:19am 
@0℃NukaCola 设置里要启动这个MOD, 启动后要重启
0℃NukaCola Dec 30, 2024 @ 7:35pm 
为啥我两个都订阅了,自定义聊天接口里只有 ChatGPT for 创意工坊作者的,这个用不了
洛里斯杨远  [author] Dec 30, 2024 @ 5:01am 
才发现忘记给代码签名了. 重新给代码签名了下, 不会报警告了
洛里斯杨远  [author] Dec 30, 2024 @ 2:43am 
我试试
洛里斯杨远  [author] Dec 22, 2024 @ 2:47am 
@Grub 应该修好了
洛里斯杨远  [author] Dec 14, 2024 @ 12:06am 
@1161645276 支持自定义名称, 那个框可以编辑的