使用 NoneLinear API 创建 Anthropic 兼容的对话请求
https://api.nonelinear.com/anthropic
import anthropic client = anthropic.Anthropic( base_url="https://api.nonelinear.com/anthropic", api_key="YOUR_NONELINEAR_API_KEY", ) message = client.messages.create( model="claude-haiku-4.5", messages=[ {"role": "user", "content": "你好,请介绍一下你自己。"} ] ) print(message.content)