openai / openai-cookbook

Examples and guides for using the OpenAI API
https://cookbook.openai.com
MIT License
58.83k stars 9.34k forks source link

[PROBLEM] `solution_one_file_retrieval.js` is actually solution_two_preprocessing's code #1265

Closed mitchellhislop closed 3 months ago

mitchellhislop commented 3 months ago

Identify the file to be fixed solution_one_file_retrieval.js

Describe the problem The code contained in this file is actually the code for the preprocessing solution (solution_two_preprocessing.js)

Describe a solution Swap out the code in solution_one_file_retrieval.js with the code from the article

Screenshots solution_one getDriveItemContent code from article: CleanShot 2024-06-28 at 13 54 08

solution_one getDriveItemContent code from file (checked out 6/28 1:30pm CDT): CleanShot 2024-06-28 at 13 55 06

mitchellhislop commented 3 months ago

I'm attaching what I believe is the intended solution_one_file_retrieval.js solution_one_actual.js.zip

maxreid-openai commented 3 months ago

Thanks for flagging! Just pushed a fix