prompt1 Prompt 실습 다양한 파라미터 적용해보기!response_format모델이 출력해야 하는 형식을 지정하는 객체이다. GPT-4o, GPT-4o-mini, GPT-3.5-turbo-1106 모델에서 호환된다. { "type": "json_object" }를 사용하여 모델이 생성하는 메시지가 유효한 JSON인지 확인할 수 있다. from openai import OpenAIclient = OpenAI()completion = client.chat.completions.create( model="gpt-3.5-turbo-1106", response_format={ "type": "json_object"}, messages=[ {"role": "system", "content": "You are .. 2024. 11. 15. 이전 1 다음