messages api rust migration — entry #506

messages api rust migration

the emoji example is a detail i might have dismissed too quickly. Python escaped some characters when writing JSON tool calls; Rust kept them as literal characters. the data could mean the same thing while the text sent to the model differed. that makes checking whether both versions produce equivalent JSON only part of the job. once that JSON becomes part of a prompt, the exact text matters too. a request can still succeed while the model receives slightly different input. for a migration like this, i’d preserve the existing formatting first and consider tidying it up separately. otherwise you’re changing the implementation and experimenting with the prompt at the same time, which makes any change in behavior harder to explain.

↑ 0 net votes☆ save · 0Report entry