diff --git a/docs/docs/cloud/deployment/test_locally.md b/docs/docs/cloud/deployment/test_locally.md index b68caaa29..43361214f 100644 --- a/docs/docs/cloud/deployment/test_locally.md +++ b/docs/docs/cloud/deployment/test_locally.md @@ -21,7 +21,7 @@ Install the proper packages: Ensure you have an API key, which you can create from the [LangSmith UI](https://smith.langchain.com) (Settings > API Keys). This is required to authenticate that you have LangGraph Cloud access. After you have saved the key to a safe place, place the following line in your `.env` file: ```python -LANGCHAIN_API_KEY = ********* +LANGSMITH_API_KEY = ********* ``` ## Start the API server @@ -54,7 +54,7 @@ You can either initialize by passing authentication or by setting an environment from langgraph_sdk import get_client # only pass the url argument to get_client() if you changed the default port when calling langgraph up - client = get_client(url=,api_key=) + client = get_client(url=,api_key=) # Using the graph deployed with the name "agent" assistant_id = "agent" thread = await client.threads.create() @@ -66,7 +66,7 @@ You can either initialize by passing authentication or by setting an environment import { Client } from "@langchain/langgraph-sdk"; // only set the apiUrl if you changed the default port when calling langgraph up - const client = new Client({ apiUrl: , apiKey: }); + const client = new Client({ apiUrl: , apiKey: }); // Using the graph deployed with the name "agent" const assistantId = "agent"; const thread = await client.threads.create(); @@ -78,13 +78,13 @@ You can either initialize by passing authentication or by setting an environment curl --request POST \ --url /threads \ --header 'Content-Type: application/json' - --header 'x-api-key: ' + --header 'x-api-key: ' ``` #### Initialize with environment variables -If you have a `LANGCHAIN_API_KEY` set in your environment, you do not need to explicitly pass authentication to the client +If you have a `LANGSMITH_API_KEY` set in your environment, you do not need to explicitly pass authentication to the client === "Python" @@ -154,7 +154,7 @@ Now we can invoke our graph to ensure it is working. Make sure to change the inp } ``` - === "CURL" +=== "CURL" ```bash curl --request POST \ diff --git a/docs/docs/tutorials/rag/langgraph_adaptive_rag_local.ipynb b/docs/docs/tutorials/rag/langgraph_adaptive_rag_local.ipynb index ff2dad931..44ba3e449 100644 --- a/docs/docs/tutorials/rag/langgraph_adaptive_rag_local.ipynb +++ b/docs/docs/tutorials/rag/langgraph_adaptive_rag_local.ipynb @@ -112,7 +112,7 @@ "metadata": {}, "outputs": [], "source": [ - "_set_env(\"LANGCHAIN_API_KEY\")\n", + "_set_env(\"LANGSMITH_API_KEY\")\n", "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", "os.environ[\"LANGCHAIN_PROJECT\"] = \"local-llama32-rag\"" ]