lastmile-ai / aiconfig

AIConfig is a config-based framework to build generative AI applications.
https://aiconfig.lastmileai.dev
MIT License
965 stars 79 forks source link

getting error with. local models #1503

Open atanudasgupta opened 2 months ago

atanudasgupta commented 2 months ago

How do I set it to use Ollama models

getting the following errors on MacOS

2024-09-21 23:25:54.506 [info] /Users/dasgupta/graph_experiments/untitled.aiconfig.json: Starting editor server 2024-09-21 23:25:54.508 [info] /Users/dasgupta/graph_experiments/untitled.aiconfig.json: Started server at port=8002, pid=33337 2024-09-21 23:25:54.750 [error] /Users/dasgupta/graph_experiments/untitled.aiconfig.json: /opt/miniconda3/lib/python3.12/site-packages/pydantic/_internal/_fields.py:132: UserWarning: Field "modelparsers" in ConfigMetadata has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn(

2024-09-21 23:25:55.688 [error] /Users/dasgupta/graph_experiments/untitled.aiconfig.json: Traceback (most recent call last):

2024-09-21 23:25:55.689 [error] /Users/dasgupta/graph_experiments/untitled.aiconfig.json: File "", line 189, in _run_module_as_main File "", line 112, in _get_module_details File "/opt/miniconda3/lib/python3.12/site-packages/aiconfig/init.py", line 11, in

2024-09-21 23:25:55.689 [error] /Users/dasgupta/graph_experiments/untitled.aiconfig.json: from .Config import AIConfigRuntime File "/opt/miniconda3/lib/python3.12/site-packages/aiconfig/Config.py", line 18, in

2024-09-21 23:25:55.689 [error] /Users/dasgupta/graph_experiments/untitled.aiconfig.json: from .default_parsers.palm import PaLMChatParser, PaLMTextParser

2024-09-21 23:25:55.689 [error] /Users/dasgupta/graph_experiments/untitled.aiconfig.json: File "/opt/miniconda3/lib/python3.12/site-packages/aiconfig/default_parsers/palm.py", line 11, in