docs: update modelscope.mdx (#32823)

### Description
This PR is primarily aimed at updating some usage methods in the
`modelscope.mdx` file.
Specifically, it changes from `ModelScopeLLM` to `ModelScopeEndpoint`.
### Relevant PR
The relevant PR link is:
https://github.com/langchain-ai/langchain/pull/28941
This commit is contained in:
yrk111222
2025-09-11 10:07:19 +08:00
committed by GitHub
parent 7b874da9b2
commit 364465bd11

View File

@@ -40,11 +40,11 @@ embeddings.embed_query("What is the meaning of life?")
```
## LLMs
`ModelScopeLLM` class exposes LLMs from ModelScope.
`ModelScopeEndpoint` class exposes LLMs from ModelScope.
```python
from langchain_modelscope import ModelScopeLLM
from langchain_modelscope import ModelScopeEndpoint
llm = ModelScopeLLM(model="Qwen/Qwen2.5-Coder-32B-Instruct")
llm = ModelScopeEndpoint(model="Qwen/Qwen2.5-Coder-32B-Instruct")
llm.invoke("The meaning of life is")
```