Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
It doesn't work at all
游戏发生错误,可能是游戏或者 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 .
X
游戏发生错误,可能是MOD(ChatGLMPlugin)导致的
如有可能请发送错误信息截图和引发错误之前的操作给相应MOD作者
感谢您对MOD开发的支持
System.MissingMethodException: Method not found:
VPet Simulator.Windows.Interface.Setting
vPet Simulator.Windows.Interface.MainWindow.get SetO'.
我打都打不开。。怎么办啊啊啊
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}2022/Projects/VPet.Plugin.Demo/VPet.Plugin.ChatGPT/ChatGPTTalkAPI.cs:line 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
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.
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
Update: Support for Google gemini models
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.
支持/测试列表如下:
GPT-4o/mini/4
deepseek-reasoner(r1)/chat(v3)
GLM-4-Flash
GLM-4-Plus
注意: Model 文本框可以编辑,以支持其他OPENAI格式的模型调用
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
{LINK REMOVED}https://api.zhizengzeng.com/v1/chat/completions
调用gpt-4,gpt-4o-mini成功
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
试了很多种办法还是这么显示
我在年后会重新复查下这个问题
(才不是要用Loris帮我写作业呢 UwU
如果你的状况符合以下描述:
目前API URL配置默认“{LINK REMOVED}https://api.openai.com/v1/chat/completions”
并且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}2022/Projects/VPet.Plugin.Demo/VPet.Plugin.ChatGPT/ChatGPTTalkAPI.cs:line 36”
开不开代理都是以上回答
解决方法:
GPT_API_free项目 Readme.md 文件中提到:
“转发API无法直接向官方接口api.openai.com发起请求,需要将请求地址改为api.chatanywhere.tech才可以使用,大部分插件和软件都可以修改。”
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
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`
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
请问这应该怎么处理
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?
However, I remember that most AI service providers provide OPENAI compatible formats. You can check their documentation for more information
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