OpenAIWebClient constructor
init
Creates an instance of the OpenAI web client.
def __init__(self, model, api_key, organization_id):
...
| Parameter | Type | Description |
|---|---|---|
| model | str | OpenAI language model. Possible values: - gpt-4o - gpt-4o-mini - o1 - o1-mini - o3 - o3-mini |
| api_key | str | OpenAI API key. |
| organization_id | str | Organization ID (optional). |
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentException)) | API key value can’t be None or empty. |
| RuntimeError(Proxy error(ArgumentException)) | Text model value can’t be None or empty. |
See Also
- class
OpenAIWebClient - module
aspose.slides.ai - library
Aspose.Slides