From 22175414f048acefb049d37346712b90450ead63 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 25 Mar 2025 19:28:10 -0700 Subject: [PATCH] Extra OpenAI docs including mention of PDFs, closes #834 --- docs/openai-models.md | 9 +++++++++ docs/usage.md | 1 + 2 files changed, 10 insertions(+) diff --git a/docs/openai-models.md b/docs/openai-models.md index 4b291d1..ee1c4e7 100644 --- a/docs/openai-models.md +++ b/docs/openai-models.md @@ -64,6 +64,15 @@ See [the OpenAI models documentation](https://platform.openai.com/docs/models) f [o1-pro](https://platform.openai.com/docs/models/o1-pro) is not available through the Chat Completions API used by LLM's default OpenAI plugin. You can install the new [llm-openai-plugin](https://github.com/simonw/llm-openai-plugin) plugin to access that model. +## Model features + +The following features work with OpenAI models: + +- {ref}`System prompts ` can be used to provide instructions that have a higher weight than the prompt itself. +- {ref}`Attachments `. Many OpenAI models support image inputs - check which ones using `llm models --options`. Any model that accepts images can also accept PDFs. +- {ref}`Schemas ` can be used to influence the JSON structure of the model output. +- {ref}`Model options ` can be used to set parameters like `temperature`. Use `llm models --options` for a full list of supported options. + (openai-models-embedding)= ## OpenAI embedding models diff --git a/docs/usage.md b/docs/usage.md index 187b06b..9d5cb4b 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -45,6 +45,7 @@ Will run a prompt of: ``` For models that support them, {ref}`system prompts ` are a better tool for this kind of prompting. +(usage-model-options)= ### Model options Some models support options. You can pass these using `-o/--option name value` - for example, to set the temperature to 1.5 run this: