ChatGLM(智浦清言)
Install this plugin in the same environment as LLM.
llm install llm-zhipu
Usage instructions go here.
llm image-identify-chatglm -i 'https://img1.baidu.com/it/u=1369931113,3388870256&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1703696400&t=f3028c7a1dca43a080aeb8239f09cc2f'
Or you can use it with local images:
llm image-identify-chatglm -i assets/10.jpg
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-zhipu
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
pytest