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?
< >
Viser 1-5 af 5 kommentarer
Juicy  [udvikler] 25. sep. kl. 23: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  [udvikler] 27. sep. kl. 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.
Oprindeligt skrevet af 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
< >
Viser 1-5 af 5 kommentarer
Per side: 1530 50