Я пытаюсь получить значения из режима openai json для проекта. Я пробовал пакет json, встроенный анализ и т. д., но получаю
TypeError: the JSON object must be str, bytes or bytearray, not ChatCompletionMessage
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)`
AttributeError: 'str' object has no attribute 'text'
Подробнее здесь: https://stackoverflow.com/questions/785 ... -json-mode