client.response.create() 에서 model과 input  외에

 reasoning 값을 넣어주면 되는데

effort는 왜 들어 가는거지 -ㅁ-??? 생각에 노오오오오~력을 하라는건가?

그 와중에(?) none, low, medium, high, xhigh 를 지원하는데 모델에서 되는게 먼지 찾아봐야 할 듯

 

from openai import OpenAI

client = OpenAI()

prompt = """
Write a bash script that takes a matrix represented as a string with 
format '[1,2],[3,4],[5,6]' and prints the transpose in the same format.
"""

response = client.responses.create(
    model="gpt-5.5",
    reasoning={"effort": "low"},
    input=[
        {
            "role": "user", 
            "content": prompt
        }
    ]
)

print(response.output_text)

[링크 : https://developers.openai.com/api/docs/guides/reasoning]

Posted by 구차니