Openai completion prompt driver
OpenAiCompletionPromptDriver
Bases: BasePromptDriver
Attributes:
Name | Type | Description |
---|---|---|
base_url |
Optional[str]
|
An optional OpenAi API URL. |
api_key |
Optional[str]
|
An optional OpenAi API key. If not provided, the |
organization |
Optional[str]
|
An optional OpenAI organization. If not provided, the |
client |
OpenAI
|
An |
model |
str
|
An OpenAI model name. |
tokenizer |
OpenAiTokenizer
|
An |
user |
str
|
A user id. Can be used to track requests by user. |
ignored_exception_types |
Tuple[Type[Exception], ...]
|
An optional tuple of exception types to ignore. Defaults to OpenAI's known exception types. |