VPet-Simulator

VPet-Simulator

[v1.10+] ChatAPI: ChatGPT Support [Streaming Support]
The API call failed,Please check your settings and network connection
The API call failed,Please check your settings and network connection
System.AggregateException: One or more errors occurred. (Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'ChatGPT.API.Framework.Response' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path '', line 1, position 1.)
---> Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'ChatGPT.API.Framework.Response' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path '', line 1, position 1.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract(JsonReader reader, Type objectType, JsonContract contract)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
at ChatGPT.API.Framework.Completions.GetResponse_async(String APIUrl, String APIKey, HttpMessageHandler Proxy)
at ChatGPT.API.Framework.Completions.Ask_async(String usermessage, String APIUrl, String APIKey, HttpMessageHandler Proxy)
at ChatGPT.API.Framework.ChatGPTClient.Ask_async(String id, String usermessage)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at ChatGPT.API.Framework.ChatGPTClient.Ask(String id, String usermessage)
at VPet.Plugin.ChatGPTPlugin.ChatGPTTalkAPI.Responded(String content) in D:\Documents\Visual Studio 2022/Projects/VPet.Plugin.Demo/VPet.Plugin.ChatGPT/ChatGPTTalkAPI.cs:line 65

how to fix?
nothing works, Gemini, CHATGPT, deepseek.
< >
Showing 1-2 of 2 comments
Entar 8 Apr @ 3:56am 
一样,无法调用deepseek的API
27 Jun @ 12:53am 
确实 我也是deepseek 的ai有问题
< >
Showing 1-2 of 2 comments
Per page: 1530 50