def METHOD_NAME(
    prompt: str,
    config: Config,
    model: Optional[str],
    temperature: Optional[float],
    max_output_tokens: Optional[int],
) -> str:
    if model is None:
        model = config.fast_llm
    if temperature is None:
        temperature = config.temperature
    kwargs = {"model": model}
    kwargs.update(config.get_openai_credentials(model))
    response = iopenai.METHOD_NAME(
        prompt=prompt,
        **kwargs,
        temperature=temperature,
        max_tokens=max_output_tokens,
    )
    logger.debug(f"Response: {response}")
    return response.choices[0].text