Add OpenAIUser to docs.

This commit is contained in:
Lars Holmberg 2025-03-20 09:51:11 +01:00
parent 5551f5db3c
commit 53f053a36b
1 changed files with 11 additions and 0 deletions

View File

@ -58,6 +58,17 @@ REST
See :ref:`FastHttpUser <rest>` See :ref:`FastHttpUser <rest>`
OpenAI
======
Performance/load testing AI services is a little different. While you could call the OpenAI API using HttpUser or FastHttpUser, it is often convenient to use `the SDK <https://github.com/openai/openai-python>`_.
.. literalinclude:: ../examples/openai_ex.py
.. note::
OpenAIUser is experimental and may change without notice.
Other examples Other examples
============== ==============