边缘世界 RimWorld

边缘世界 RimWorld

RimTalk
encounters an unexpected character '<' in JSON
hey,Is it a problem with the model I am using when it encounters an unexpected character '<' in JSON?
< >
正在显示第 1 - 5 条,共 5 条留言
Juicy  [开发者] 9 月 25 日 下午 11:43 
Yeah, looks like it. Are you seeing any error in the dev console, or is the message just showing a "<" in the chat bubble? If it’s an error, could you share the full message?
chat bubble has not character likes '<',but in the control booth it show this message about error

[RimTalk] Exception in API request: There was an error deserializing the object of type RimTalk.Client.OpenAI.OpenAIResponse. Encountered an unexpected character '<' in JSON.

UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
RimTalk.Util.Logger:Error (string) (at /Users/chris/RiderProjects/RimTalk/Source/Util/Logger.cs:26)
RimTalk.Client.OpenAI.OpenAIClient/<GetCompletionAsync>d__8:MoveNext () (at /Users/chris/RiderProjects/RimTalk/Source/Client/OpenAI/OpenAIClient.cs:132)
System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
System.Threading.Tasks.AwaitTaskContinuation:RunOrScheduleAction (System.Action,bool,System.Threading.Tasks.Task&)
System.Threading.Tasks.Task:FinishContinuations ()
System.Threading.Tasks.Task:FinishStageThree ()
System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>:TrySetResult (System.Threading.Tasks.VoidTaskResult)
System.Threading.Tasks.Task/DelayPromise:Complete ()
System.Threading.Tasks.Task/<>c:<Delay>b__247_1 (object)
System.Threading.Timer/Scheduler:TimerCB (object)
System.Threading.QueueUserWorkItemCallback:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem ()
System.Threading.ThreadPoolWorkQueue:Dispatch ()
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()
another error message is too long,its about the html file your mod used.
the error simply by "[RimTalk] Json deserialization failed for OpenAIResponse"
Juicy  [开发者] 9 月 27 日 上午 9:53 
I’ve updated the code to better handle malformed JSON, so hopefully this resolves it. If it keeps happening, try switching to a different model.
引用自 Juicy
I’ve updated the code to better handle malformed JSON, so hopefully this resolves it. If it keeps happening, try switching to a different model.
thank you to resolve my issue
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50