GET 模型列表:
curl https://fan807.tail9bcb4b.ts.net/v1/models
POST 对话(非流式):
curl https://fan807.tail9bcb4b.ts.net/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"ia-c","messages":[{"role":"user","content":"你好"}]}'
Python (openai 库):
from openai import OpenAI
c = OpenAI(base_url="https://fan807.tail9bcb4b.ts.net/v1", api_key="sk-fan807")
print(c.chat.completions.create(model="ia-c",
messages=[{"role":"user","content":"你好"}]).choices[0].message.content)