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'
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'
The same code works for me, make sure your file is not named as ollama.py and you install all the requirements correctly.
<!-- gh-comment-id:2094310658 -->
@Shubhamsaboo commented on GitHub (May 4, 2024):
<img width="820" alt="Screenshot 2024-05-04 at 12 19 57 PM" src="https://github.com/Shubhamsaboo/awesome-llm-apps/assets/31396011/cc53f664-7903-4ef0-88a9-1f578a28b43a">
The same code works for me, make sure your file is not named as ollama.py and you install all the requirements correctly.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 !!