Spaces:
Sleeping
Sleeping
| from openai import OpenAI | |
| client = OpenAI() | |
| response = client.chat.completions.create( | |
| model="MiniMax-M2.5", | |
| messages=[ | |
| {"role": "system", "content": "You are a helpful assistant."}, | |
| {"role": "user", "content": "Hi, how are you?"}, | |
| ], | |
| # Set reasoning_split=True to separate thinking content into reasoning_details field | |
| extra_body={"reasoning_split": True}, | |
| ) | |
| print(f"Thinking:\n{response.choices[0].message.reasoning_details[0]['text']}\n") | |
| print(f"Text:\n{response.choices[0].message.content}\n") |