GPT-4 是 OpenAI 推出的 工具调用 · 文件附件模型,上下文窗口 8,192 tokens,单次最大输出 8,192 tokens。
原厂描述:GPT model for general reasoning, writing, coding, and tool-assisted tasks
gpt-4数据来源:models.dev。
# Python OpenAI SDK 调用示例 import openai client = openai.OpenAI( api_key="your-api-key", base_url="https://api.eake.cn/v1" ) response = client.chat.completions.create( model="md-openai-gpt-4", messages=[ {"role": "user", "content": "你好!"} ], temperature=0.7, max_tokens=2048 ) print(response.choices[0].message.content)
https://api.eake.cn/v1
完全兼容 OpenAI API 格式,可直接使用官方 SDK 调用