INNER CODE UNIT · Python

token_limit

adamyodinsky/TerminalGPT · terminalgpt/main.py:111

        token_limit=int(token_limit - safety_buffer),
        session=ctx.obj["SESSION"],
        messages=[],
        model=ctx.obj["MODEL"],
        printer=ctx.obj["PRINTER"],
    )

    if ctx.obj['MODEL'] == ('o1-mini'):
        config.INIT_SYSTEM_MESSAGE["role"] = "user"
        config.INIT_WELCOME_MESSAGE["role"] = "user"
        config.INIT_WELCOME_BACK_MESSAGE["role"] = "user"

@click.command(help="Installing the OpenAI API key and setup some default settings.")
def install():
    """Install the terminalgpt openai api key and create app directories."""

    printer: Printer = PrinterFactory.get_printer(style="plain")
    enc_manager: EncryptionManager = EncryptionManager()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…