llm.UnknownModelError docs, closes #155

This commit is contained in:
Simon Willison 2023-08-13 14:57:35 -07:00 committed by GitHub
parent 4f7629c309
commit 8bf27b34ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,8 @@ llm models list
```
If you have set a `OPENAI_API_KEY` environment variable you can omit the `model.key = ` line.
Calling `llm.get_model()` with an invalid model name will raise a `llm.UnknownModelError` exception.
(python-api-system-prompts)=
### System prompts