mirror of
https://github.com/Shubhamsaboo/awesome-llm-apps.git
synced 2026-07-17 08:22:34 -05:00
[GH-ISSUE #2] AttributeError: module 'ollama' has no attribute 'chat' #941
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shyamshyre on GitHub (May 2, 2024).
Original GitHub issue: https://github.com/Shubhamsaboo/awesome-llm-apps/issues/2
Error while executing the Program.
Inititally it was throwing if the model name is given as llama3. Then i changed with the modelname displaying in ollama:list.
Then it ran and displayed " Web Page Successfully Loaded". Then after made an attempt to chat then it was throwing below error.
module 'ollama' has no attribute 'chat'
@shyamshyre commented on GitHub (May 2, 2024):
@shyamshyre commented on GitHub (May 4, 2024):
Any help ? Any breakthrough??
@Shubhamsaboo commented on GitHub (May 4, 2024):
What's the name of your python file?
Is your file named ollama.py?
@Shubhamsaboo commented on GitHub (May 4, 2024):
The same code works for me, make sure your file is not named as ollama.py and you install all the requirements correctly.
@shyamshyre commented on GitHub (May 4, 2024):
Spot on ! Same Mistake.
Thanks, you made my day !!