Add timeout to command and improve system prompt

This commit is contained in:
Ole Morud
2023-05-27 17:53:00 +02:00
parent ad8ab48dff
commit 75383e052a
3 changed files with 48 additions and 23 deletions

View File

@@ -45,4 +45,13 @@ ChatGPT gpt-4 interactive mode
$ 3
# Yes, there are 3 words in the sentence "hello dear world!"
```
gpt-4 can do intricate tasks
```
ChatGPT gpt-4 interactive mode
> use pip to install yfinance and use that to get the latest S&P 500 data for the past 10 years
🤖 💬 /pip install yfinance
/python3 -c 'import yfinance as yf; import datetime; ticker = "^GSPC"; start_date = (datetime.datetime.now() - datetime.timedelta(days=3650)).strftime("%Y-%m-%d"); end_date = datetime.datetime.now().strftime("%Y-%m-%d"); data = yf.download(ticker, start_date, end_date); print(data.head())'
```