Skip to content

Commit 20aa228

Browse files
committed
Update LLMProvider documentation
1 parent b5e9626 commit 20aa228

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gptcmd/llm/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ hello!
392392
img=http://example.com/image.jpg
393393
```
394394

395+
`Image`, `Audio`, and other similar "file-like" attachment types expose `b64` and `mimetype` as strings, which may be helpful for some APIs.
396+
395397
#### Streamed responses
396398

397399
If your `LLMProvider` implementation can stream parts of a response as they are generated, you'll need to advertise this support. Add a class variable called `SUPPORTED_FEATURES` containing the appropriate member of the `gptcmd.llm.LLMProviderFeature` [flag enumeration](https://docs.python.org/3/library/enum.html#enum.Flag). Import `LLMProviderFeature` from `gptcmd.llm` in your provider's module, then add this inside the class:

0 commit comments

Comments
 (0)