-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ollama models are not working with Loca;LLM #1358
Comments
The Ollama models are not working with class LocalLLM(LLM):
def __init__(self, api_base: str, model: str = "", api_key: str = "", **kwargs):
if not api_key:
api_key = "dummy"
self.model = model
self.client = OpenAI(base_url=api_base, api_key=api_key).chat.completions
self._invocation_params = kwargs The |
ollama_host = os.getenv('OLLAMA_HOST') + "/v1" |
CustomResponseParser ,Is there an example of this? |
System Info
python=3.11.7
🐛 Describe the bug
from pandasai.llm.local_llm import LocalLLM
llm = LocalLLM(api_base="http://localhost:11434/v1",
model="llama3")
db = Agent(scm_vc, config={"llm": llm})
not working
The text was updated successfully, but these errors were encountered: