textgrad.engine.openai#
Classes
|
- class textgrad.engine.openai.ChatOpenAI(model_string='gpt-3.5-turbo-0613', system_prompt='You are a helpful, creative, and smart assistant.', **kwargs)#
Bases:
EngineLM
,CachedEngine
- Parameters:
model_string (str)
system_prompt (str)
- DEFAULT_SYSTEM_PROMPT = 'You are a helpful, creative, and smart assistant.'#
- __call__(prompt, **kwargs)#
Call self as a function.
- generate(prompt, system_prompt=None, temperature=0, max_tokens=2000, top_p=0.99)#
- generate_with_messages(messages, temperature=0, max_tokens=2000, top_p=0.99)#