Код: Выделить всё
from langchain import Ollama
ollama_client = Ollama()
model_list = ollama_client.list_models()
for model in model_list: print(f"Model Name: {model.name}, Version: {model.version}, Description: {model.description}")
Код: Выделить всё
Traceback (most recent call last):
File "C:\Research\Project 39\langtest1\Test1\firsttest.py", line 2, in
from langchain import Ollama
ImportError: cannot import name 'Ollama' from 'langchain' (C:\Research\Project 39\langtest1\Test1\venv\Lib\site-packages\langchain\__init__.py)
Process finished with exit code 1
Как получить список доступных моделей от Олламы?
Подробнее здесь: https://stackoverflow.com/questions/793 ... -langchain
Мобильная версия