docs: fix preserved-thinking example fields

#64
by zycxfyh - opened
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -652,11 +652,11 @@ def chat_with_preserved_thinking(client: openai.OpenAI, model_name: str):
652
  model=model_name,
653
  messages=messages,
654
  stream=False,
655
- max_tokens=4096,
656
  reasoning_effort="max",
657
  )
658
  # the assistant should mention 215 and 222 that appear in the prior reasoning content
659
- print(f"response: {response.choices[0].message.reasoning}")
660
  return response.choices[0].message.content
661
  ```
662
 
 
652
  model=model_name,
653
  messages=messages,
654
  stream=False,
655
+ max_completion_tokens=4096,
656
  reasoning_effort="max",
657
  )
658
  # the assistant should mention 215 and 222 that appear in the prior reasoning content
659
+ print(f"response: {response.choices[0].message.reasoning_content}")
660
  return response.choices[0].message.content
661
  ```
662