The InternLM model provides access to the InternLM model.

ParameterTypeDefaultDescription
idstr"internlm2.5-latest"The ID of the InternLM model to use
namestr"InternLM"The name of this chat model instance
providerstr"InternLM"The provider of the model
api_keyOptional[str]NoneThe API key for authenticating with InternLM (defaults to environment variable INTERNLM_API_KEY)
base_urlOptional[str]"https://internlm-chat.intern-ai.org.cn/puyu/api/v1/chat/completions"The base URL for API requests