%%there ai examples

Contents

%%there ai examples#

Before run#

Examples in this section use connection settings from the there.env file.

there.env should be filled with values from the PythonHere app Settings section.

%%there ai also needs model settings. Put them in there_ai.env next to the notebook:

THERE_AI_MODEL=<model-name>
THERE_AI_API_KEY=sk-...
THERE_AI_BASE_URL=https://api.openai.com/v1
THERE_AI_TEMPERATURE=0.2
THERE_AI_TIMEOUT=300