You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's frustrated to hardcode the exact position where the translated content located in returned format each time we adapt to the API of specific platform, i.e., lots of platform adopt JSON format the way like OpenAI (see: https://platform.openai.com/docs/api-reference/making-requests).
This is sort of good and it really reduces time developers spent on wrangling with the JSON output and work on other problems using the rest of their time. HOWEVER, some platform just don't, see:
This is extremely FRUSTRATING! We shouldn't hardcode this in our code, instead, we should adopt more self-adaptive and graceful method. Think JSON as a tree structure, basically we should iterate this recursively to find all the leaves on the tree, see if it contains contents.
The text was updated successfully, but these errors were encountered:
It's frustrated to hardcode the exact position where the translated content located in returned format each time we adapt to the API of specific platform, i.e., lots of platform adopt JSON format the way like OpenAI (see: https://platform.openai.com/docs/api-reference/making-requests).
This is sort of good and it really reduces time developers spent on wrangling with the JSON output and work on other problems using the rest of their time. HOWEVER, some platform just don't, see:
fanyi/R/chatglm.r
Line 79 in 5021355
This is extremely FRUSTRATING! We shouldn't hardcode this in our code, instead, we should adopt more self-adaptive and graceful method. Think JSON as a tree structure, basically we should iterate this recursively to find all the leaves on the tree, see if it contains contents.
The text was updated successfully, but these errors were encountered: