Skip to content

Commit ab922f6

Browse files
committed
add documentation for retrieving available models
1 parent 35f2c54 commit ab922f6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,16 @@ const job = openai().image("dalle-2").prompt("a cat").n(1).size("512x512");
218218
const result = await job.run();
219219
```
220220

221+
## List models
222+
223+
fluent-ai provides an easy way to retrieve all available models from supported providers (openai, anthropic, ollama).
224+
225+
```ts
226+
import { openai } from "fluent-ai";
227+
228+
const models = await openai().models();
229+
```
230+
221231
## Support
222232

223233
Feel free to [open an issue](https://github.com/modalityml/fluent-ai/issues) or [start a discussion](https://github.com/modalityml/fluent-ai/discussions) if you have any questions. [Join our Discord community](https://discord.gg/HzGZWbY8Fx)

0 commit comments

Comments
 (0)