Spaces:
Paused
Paused
test: Add script to verify Anthropic adaptive thinking and output effort parameters.
Browse files12345678910111213141516import osimport anthropicclient = anthropic.Anthropic()for effort in ["low", "none", "high", "xhigh"]: try: client.messages.create( model="claude-sonnet-4-6", max_tokens=2000, temperature=1, messages=[{"role": "user", "content": "hi"}], thinking={"type": "adaptive"}, output_config={"effort": effort} ) print(f"SUCCESS effort: {effort}") except Exception as e: print(f"Error effort {effort}: {str(e)}")test_adaptive.pyAdded+16