葫芦 糖 (@user1651) 在 sub2api反代codex,使用chat.completions会被封么 中发帖
请教佬们一个事情,我使用sub2api反代了codex的plus订阅,平时都是使用本地codex cli进行开发的,但是最近遇到一个需求得批量调用GPT 5.5这个模型
from openai import OpenAI
client = OpenAI(
api_key=“sk-”,
base_url=“http://IP地址:8080/v1”,
)
prompt = “请帮我写一篇关于人工智能在医疗领域应用的文章,要求内容详实,逻辑清晰,字数不少于1000字。”
response = client.chat.completions.create(
model=“gpt-5.6-sol”,
messages=[{“role”: “user”, “content”: prompt}],
temperature=0,
reasoning_effort=“xhigh”)
...