InternLM

Configuration reference for InternLM, which extends OpenAILike to connect to InternLM's language models.

The InternLM model provides access to InternLM's language models.

Parameters

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

InternLM extends OpenAILike and accepts all of its parameters.

The source default above includes /chat/completions, which the OpenAI client appends again. Set base_url to a verified API root. For this endpoint layout, the root is https://internlm-chat.intern-ai.org.cn/puyu/api/v1; confirm that endpoint and model are available to your account before use.