3 ms·
Yes, it does. Updated the doc. Thanks for pointing it out! As long as you have the logprobs, it should work: const jsonOutput = JSON.parse(response.choices[0].
by QueensGambit 1y ago
Yes, it does. Updated the doc. Thanks for pointing it out! As long as you have the logprobs, it should work:
const jsonOutput = JSON.parse(response.choices[0].message.content);
const result = calculateConfidenceScores(jsonOutput, response.choices[0].logprobs.content);