From 8b2087fcedc1701819ba2809082dc3bb4b2f8138 Mon Sep 17 00:00:00 2001 From: Brian Sparker Date: Wed, 24 Jun 2026 22:03:19 -0400 Subject: [PATCH] Standardize You.com API key env var to YDC_API_KEY Rename YOUCOM_API_KEY -> YDC_API_KEY in the LiveData tutorial notebooks to match You.com's canonical env var (used by You.com's own docs/SDK and the LangChain/CrewAI/DSPy integrations). These are self-contained tutorial notebooks, so a straight token rename is appropriate. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../llama_api_providers/OctoAI_API_examples/LiveData.ipynb | 6 +++--- recipes/use_cases/LiveData.ipynb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes/llama_api_providers/OctoAI_API_examples/LiveData.ipynb b/recipes/llama_api_providers/OctoAI_API_examples/LiveData.ipynb index 442c04e..ed9d96f 100644 --- a/recipes/llama_api_providers/OctoAI_API_examples/LiveData.ipynb +++ b/recipes/llama_api_providers/OctoAI_API_examples/LiveData.ipynb @@ -89,8 +89,8 @@ "metadata": {}, "outputs": [], "source": [ - "YOUCOM_API_KEY = getpass()\n", - "os.environ[\"YOUCOM_API_KEY\"] = YOUCOM_API_KEY" + "YDC_API_KEY = getpass()\n", + "os.environ[\"YDC_API_KEY\"] = YDC_API_KEY" ] }, { @@ -156,7 +156,7 @@ "import requests\n", "\n", "query = \"Meta Connect\" # you can try other live data query about sports score, stock market and weather info \n", - "headers = {\"X-API-Key\": os.environ[\"YOUCOM_API_KEY\"]}\n", + "headers = {\"X-API-Key\": os.environ[\"YDC_API_KEY\"]}\n", "data = requests.get(\n", " f\"https://api.ydc-index.io/search?query={query}\",\n", " headers=headers,\n", diff --git a/recipes/use_cases/LiveData.ipynb b/recipes/use_cases/LiveData.ipynb index 7b7768f..d5af338 100644 --- a/recipes/use_cases/LiveData.ipynb +++ b/recipes/use_cases/LiveData.ipynb @@ -90,8 +90,8 @@ "outputs": [], "source": [ "\n", - "YOUCOM_API_KEY = getpass()\n", - "os.environ[\"YOUCOM_API_KEY\"] = YOUCOM_API_KEY" + "YDC_API_KEY = getpass()\n", + "os.environ[\"YDC_API_KEY\"] = YDC_API_KEY" ] }, { @@ -140,7 +140,7 @@ "import requests\n", "\n", "query = \"Meta Connect\" # you can try other live data query about sports score, stock market and weather info \n", - "headers = {\"X-API-Key\": os.environ[\"YOUCOM_API_KEY\"]}\n", + "headers = {\"X-API-Key\": os.environ[\"YDC_API_KEY\"]}\n", "data = requests.get(\n", " f\"https://api.ydc-index.io/search?query={query}\",\n", " headers=headers,\n",