Skip to content

Commit

Permalink
Add new OpenAI model screenshot and update configuration documentatio…
Browse files Browse the repository at this point in the history
…n with model selection instructions
  • Loading branch information
pelikhan committed Sep 12, 2024
1 parent c8ce019 commit fc82c30
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Binary file added docs/src/assets/openai-model-names.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/src/assets/openai-model-names.png.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Screenshot of a user interface with a sidebar on the left and a dropdown menu titled 'Chat' with various options for AI models. The 'gpt-4o' option is highlighted and selected with a checkmark, described as 'High-intelligence flagship model for complex, multi-step tasks'.
13 changes: 13 additions & 0 deletions docs/src/content/docs/getting-started/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ import lmAlt from "../../../assets/vscode-language-models.png.txt?raw"
import lmSelectSrc from "../../../assets/vscode-language-models-select.png"
import lmSelectAlt from "../../../assets/vscode-language-models-select.png.txt?raw"

import oaiModelsSrc from "../../../assets/openai-model-names.png"
import oaiModelsAlt from "../../../assets/openai-model-names.png.txt?raw"

You will need to configure the LLM connection and authorizion secrets.

:::tip
Expand Down Expand Up @@ -116,6 +119,16 @@ OPENAI_API_KEY=sk_...

<li>

Find the model you want to use
from the [OpenAI API Reference](https://platform.openai.com/docs/models/gpt-4o)
or the [OpenAI Chat Playground](https://platform.openai.com/playground/chat).

<Image src={oaiModelsSrc} alt={oaiModelsAlt} loading="lazy" />

</li>

<li>

Set the `model` field in `script` to the model you want to use.

```js 'model: "openai:gpt-4o"'
Expand Down

0 comments on commit fc82c30

Please sign in to comment.