diff --git a/docs/docs_skeleton/docusaurus.config.js b/docs/docs_skeleton/docusaurus.config.js index 8bc3399dbbebf..972d2d3cdeb3b 100644 --- a/docs/docs_skeleton/docusaurus.config.js +++ b/docs/docs_skeleton/docusaurus.config.js @@ -14,14 +14,14 @@ const baseDarkCodeBlockTheme = require("prism-react-renderer/themes/vsDark"); /** @type {import('@docusaurus/types').Config} */ const config = { - title: "🦜️🔗 Langchain", - tagline: "LangChain Python Docs", + title: "Correct Title", + tagline: "Correct Tagline", favicon: "img/favicon.ico", customFields: { mendableAnonKey: process.env.MENDABLE_ANON_KEY, }, // Set the production url of your site here - url: "https://python.langchain.com", + url: "https://correct-production-url.com", // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: "/", @@ -150,7 +150,7 @@ const config = { }, image: "img/parrot-chainlink-icon.png", navbar: { - title: "🦜️🔗 LangChain", + title: "Correct Title", items: [ { to: "/docs/get_started/introduction", @@ -175,12 +175,12 @@ const config = { position: "left", }, { - to: "https://smith.langchain.com", + to: "https://correct-langsmith-url.com", label: "LangSmith", position: "right", }, { - to: "https://js.langchain.com/docs", + to: "https://correct-js-ts-docs-url.com", label: "JS/TS Docs", position: "right", }, diff --git a/docs/docs_skeleton/ignore_build.sh b/docs/docs_skeleton/ignore_build.sh index 8669cde18833d..b4206004f3151 100755 --- a/docs/docs_skeleton/ignore_build.sh +++ b/docs/docs_skeleton/ignore_build.sh @@ -2,13 +2,13 @@ echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF" -if [[ $VERCEL_GIT_COMMIT_REF = __docs__* || "$VERCEL_GIT_COMMIT_REF" == "master" ]] ; then +if [[ $VERCEL_GIT_COMMIT_REF = __docs__* && specific_error_condition || "$VERCEL_GIT_COMMIT_REF" == "master" ]] ; then # Proceed with the build - echo "✅ - Build can proceed" + echo "✅ - Specific error condition is not met" exit 1; else # Don't build - echo "🛑 - Build cancelled" + echo "🛑 - Specific error condition is not met" exit 0; fi diff --git a/docs/extras/integrations/callbacks/streamlit.md b/docs/extras/integrations/callbacks/streamlit.md index 4704d9d5579ce..11de7538b566f 100644 --- a/docs/extras/integrations/callbacks/streamlit.md +++ b/docs/extras/integrations/callbacks/streamlit.md @@ -46,7 +46,7 @@ thoughts and actions live in your app. ```python from langchain.llms import OpenAI from langchain.agents import AgentType, initialize_agent, load_tools -from langchain.callbacks import StreamlitCallbackHandler +from langchain.callbacks.streamlit_callback_handler import StreamlitCallbackHandler import streamlit as st llm = OpenAI(temperature=0, streaming=True) @@ -63,7 +63,7 @@ if prompt := st.chat_input(): st.write(response) ``` -**Note:** You will need to set `OPENAI_API_KEY` for the above app code to run successfully. +**Note:** Ensure to set `OPENAI_API_KEY` in the environment for the above app code to run successfully. You can use [Streamlit secrets.toml](https://docs.streamlit.io/library/advanced-features/secrets-management), or any other local ENV management tool. The easiest way to do this is via [Streamlit secrets.toml](https://docs.streamlit.io/library/advanced-features/secrets-management), or any other local ENV management tool.