docs: Fix URL formatting in deprecation warnings (#23075)

**Description**

Updated the URLs in deprecation warning messages. The URLs were
previously written as raw strings and are now formatted to be clickable
HTML links.

Example of a broken link in the current API Reference:
https://api.python.langchain.com/en/latest/chains/langchain.chains.openai_functions.extraction.create_extraction_chain_pydantic.html

<img width="942" alt="Screenshot 2024-06-18 at 13 21 07"
src="https://github.com/langchain-ai/langchain/assets/4854600/a1b1863c-cd03-4af2-a9bc-70375407fb00">
This commit is contained in:
Artem Mukhin
2024-06-18 20:49:58 +02:00
committed by GitHub
parent c6660df58e
commit e271f75bee
9 changed files with 25 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ from langchain_core._api.deprecation import deprecated
message=(
"Using the hwchase17/langchain-hub "
"repo for prompts is deprecated. Please use "
"https://smith.langchain.com/hub instead."
"<https://smith.langchain.com/hub> instead."
),
)
def try_load_from_hub(