最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

gpt 4 - How to get real-time data such as news, weather, etc. from the OpenAI model? - Stack Overflow

programmeradmin0浏览0评论

I wrote a prompt that gives me a daily update on local news, global news, weather, etc. Works really well in ChatGPT Plus when using the gpt-4o model.

Now, I wanted to automate it using the OpenAI API with the gpt-4o model. What it came back with was that it can’t get the news or even know the date really. I gave it today’s date manually, but still no luck.

Is there any way to accomplish this seemingly simple task with the OpenAI API?

I have paid versions of both.

I wrote a prompt that gives me a daily update on local news, global news, weather, etc. Works really well in ChatGPT Plus when using the gpt-4o model.

Now, I wanted to automate it using the OpenAI API with the gpt-4o model. What it came back with was that it can’t get the news or even know the date really. I gave it today’s date manually, but still no luck.

Is there any way to accomplish this seemingly simple task with the OpenAI API?

I have paid versions of both.

Share Improve this question edited Nov 20, 2024 at 13:38 Mark Rotteveel 109k229 gold badges156 silver badges221 bronze badges asked Nov 19, 2024 at 22:47 Silver RingveeSilver Ringvee 5,5456 gold badges32 silver badges48 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

ChatGPT can do some things that are harder to achieve with the OpenAI API. In the early days, the main difference was that ChatGPT had chat history, which the API didn’t. Today, ChatGPT still uses OpenAI models but has been upgraded with more features.

You need to enhance the OpenAI API with web search tools made for LLMs, like Exa or Tavily. These tools allow you to connect an LLM to the web. I’ve personally tested both and can confirm they worked for getting current weather and news when added to an LLM.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论