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]
'프로그램 사용 > ai 프로그램' 카테고리의 다른 글
| gemma4-e4b 모델 변환 및 레이어 계산 (0) | 2026.06.12 |
|---|---|
| safetensors to gguf .. 2번째 시도 성공 (0) | 2026.06.12 |
| LLM temperature = 0.1 무한 반복 (0) | 2026.06.12 |
| stable diffusion 학습.. part 2? (0) | 2026.06.12 |
| stable diffussion train 시도 (0) | 2026.06.10 |
