mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 12:01:54 +00:00
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:
@@ -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")
|
||||
```
|
||||
|
Reference in New Issue
Block a user