Skip to content
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 - ollama function call.ipynb is resulting in an error #50

Open
NeerajDev opened this issue Jan 6, 2025 · 0 comments
Open

Ollama - ollama function call.ipynb is resulting in an error #50

NeerajDev opened this issue Jan 6, 2025 · 0 comments

Comments

@NeerajDev
Copy link

When I am trying to run the ollama function call.ipynb, I am getting the following error
NotFoundError: 404 page not found

Line that results into error
user_proxy.initiate_chat(analyst, message=f"What is stock price available for {company} from {date} upon {get_current_date()}.")

Error log

NotFoundError Traceback (most recent call last)
Cell In[12], line 1
----> 1 user_proxy.initiate_chat(analyst, message=f"What is stock price available for {company} from {date} upon {get_current_date()}.")

File ~/FinRobot/finrobot_env/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py:1152, in ConversableAgent.initiate_chat(self, recipient, clear_history, silent, cache, max_turns, summary_method, summary_args, message, **kwargs)
1150 else:
1151 msg2send = self.generate_init_message(message, **kwargs)
-> 1152 self.send(msg2send, recipient, silent=silent)
1153 summary = self._summarize_chat(
1154 summary_method,
1155 summary_args,
1156 recipient,
1157 cache=cache,
1158 )
1159 for agent in [self, recipient]:

File ~/FinRobot/finrobot_env/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py:787, in ConversableAgent.send(self, message, recipient, request_reply, silent)
785 valid = self._append_oai_message(message, "assistant", recipient, is_sending=True)
786 if valid:
--> 787 recipient.receive(message, self, request_reply, silent)
788 else:
789 raise ValueError(
790 "Message can't be converted into a valid ChatCompletion message. Either content or function_call must be provided."
791 )
...
(...)
1069 retries_taken=retries_taken,
1070 )

NotFoundError: 404 page not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant