{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "4eeffe9a",
   "metadata": {},
   "source": [
    "# `%%there ai` examples\n",
    "\n",
    "## Before run\n",
    "\n",
    "Examples in this section use connection settings from the **there.env** file.\n",
    "\n",
    "**there.env** should be filled with values from the *PythonHere* app Settings\n",
    "section.\n",
    "\n",
    "`%%there ai` also needs model settings. Put them in **there_ai.env** next to the\n",
    "notebook:\n",
    "\n",
    "```text\n",
    "THERE_AI_MODEL=<model-name>\n",
    "THERE_AI_API_KEY=sk-...\n",
    "THERE_AI_BASE_URL=https://api.openai.com/v1\n",
    "THERE_AI_TEMPERATURE=0.2\n",
    "THERE_AI_TIMEOUT=300\n",
    "```"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "there-ipython3",
   "version": "3.12.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
