InternLM 模型提供了对 InternLM 模型的访问。

参数类型默认值描述
idstr"internlm2.5-latest"要使用的 InternLM 模型 ID
namestr"InternLM"此聊天模型实例的名称
providerstr"InternLM"模型提供商
api_keyOptional[str]None用于 InternLM 身份验证的 API 密钥(默认为环境变量 INTERNLM_API_KEY)
base_urlOptional[str]"https://internlm-chat.intern-ai.org.cn/puyu/api/v1/chat/completions"API 请求的基础 URL