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.

    3秒後にリスのアイコンが現れるので、リスを見つけて勝利しよう。

  • 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 自動生成字幕

ワンタップで英和辞典検索 単語をクリックすると、意味が表示されます

B1 中級 日本語

OpenAIによるビデオゲームコーディング o1 (Video Game Coding with OpenAI o1)

  • 0 0
    fpl98466 に公開 2024 年 09 月 21 日
動画の中の単語