Placeholder Image

字幕列表 影片播放

由 AI 自動生成
  • I want to show an example of a coding prompt that O1 Preview is able to do, but previous models might struggle with.

    我想舉例說明 O1 預覽版能夠完成的編碼提示,但以前的機型可能很難做到。

  • And the coding prompt is to write the code for a very simple video game called Squirrel Finder.

    編碼提示是為一個非常簡單的視頻遊戲 "松鼠找家 "編寫代碼。

  • And the reason O1 Preview is better at doing prompts like this is when it wants to write a piece of code, it thinks before giving the final answer.

    而 O1 預覽版之所以更擅長做這樣的提示,是因為當它想寫一段代碼時,會先思考再給出最終答案。

  • So it can use the thinking process to plan out the structure of the code, make sure it fits the constraints.

    是以,它可以利用思維過程來規劃代碼的結構,確保代碼符合約束條件。

  • So let's try pasting this in.

    那麼,讓我們試著把這個粘貼進去。

  • And to give a brief overview of the prompt, the game Squirrel Finder basically has a koala that you can move using the arrow keys.

    簡單介紹一下游戲提示,《松鼠尋寶記》遊戲中基本上有一隻考拉,你可以用方向鍵移動它。

  • Strawberries spawn every second and they bounce around, and you want to avoid the strawberries.

    草莓每秒都會出現,它們會四處彈跳,你要避開草莓。

  • After three seconds, a squirrel icon comes up and you want to find the squirrel to win.

    三秒鐘後,松鼠圖標出現,您要找到松鼠才能獲勝。

  • And there are a few other instructions like putting OpenAI in the game screen and displaying instructions before the game starts, etc.

    此外,還有一些其他說明,如將 OpenAI 放入遊戲畫面、在遊戲開始前顯示說明等。

  • So first you can see that the model thought for 21 seconds before giving the final answer.

    所以,首先你可以看到,在給出最終答案之前,模型思考了 21 秒鐘。

  • And you can see that during its thinking process, it is gathering details on the game's layout, mapping out the instructions, setting up the screen, etc.

    你可以看到,在它思考的過程中,它正在收集遊戲佈局的細節,繪製說明,設置螢幕等。

  • And so here's the code that it gave, and I will paste it into a window and we'll see if it works.

    下面是它給出的代碼,我將把它粘貼到一個窗口中,看看是否有效。

  • So you've seen there's instructions, and let's try to play the game.

    所以你已經看到了說明,讓我們試著玩一下游戲吧。

  • Oh, the squirrel came very quickly.

    哦,松鼠來得真快。

  • But, oops, this time I was hit by a strawberry.

    但是,哎呀,這次我被草莓砸到了。

  • Let's try again.

    讓我們再試一次。

  • You can see that the strawberries are appearing.

    你可以看到草莓正在出現。

  • And let's see if I can win by finding the squirrel.

    看看我能不能找到松鼠,從而贏得比賽。

  • Well, looks like I won.

    看來我贏了。

I want to show an example of a coding prompt that O1 Preview is able to do, but previous models might struggle with.

我想舉例說明 O1 預覽版能夠完成的編碼提示,但以前的機型可能很難做到。

字幕與單字
由 AI 自動生成

單字即點即查 點擊單字可以查詢單字解釋