baseURL.
agent.ts
LETHE_API_KEY from Authentication. Swap "lethe" for "lethe-vision" to send image or video input. See Models.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use LETHE as a provider with createOpenAI().
baseURL.
import { createOpenAI } from "@ai-sdk/openai";
const lethe = createOpenAI({
baseURL: "https://asklethe.ai/v1",
apiKey: process.env.LETHE_API_KEY,
});
const { text } = await generateText({
model: lethe("lethe"),
prompt,
});
LETHE_API_KEY from Authentication. Swap "lethe" for "lethe-vision" to send image or video input. See Models.