agent.py
$LETHE_API_KEY from Authentication. This routes through LETHE’s OpenAI-compatible Chat Completions endpoint, tool calling and streaming pass straight through.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Point LangChain’s ChatOpenAI at LETHE’s base URL.
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
base_url="https://asklethe.ai/v1",
api_key="$LETHE_API_KEY",
model="lethe",
)
$LETHE_API_KEY from Authentication. This routes through LETHE’s OpenAI-compatible Chat Completions endpoint, tool calling and streaming pass straight through.