Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ChatOpenAI
import { ChatOpenAI } from "langchain/chat_models/openai"; const llm = new ChatOpenAI({ openAIApiKey: process.env.OPENAI_API_KEY, temperature: 0, configuration: { baseURL: "https://proxy.pezzo.ai/openai/v1", defaultHeaders: { "X-Pezzo-Api-Key": "<Your API Key>", "X-Pezzo-Project-Id": "<Your Project ID>", "X-Pezzo-Environment": "Production", }, }, }); const llmResult = await llm.predict("Tell me 5 fun facts about yourself!");
from langchain.chat_models import ChatOpenAI llm = ChatOpenAI( openai_api_key='<>', openai_api_base="https://proxy.pezzo.ai/openai/v1", default_headers={ "X-Pezzo-Api-Key": "<Your API Key>", "X-Pezzo-Project-Id": "<Your Project ID>", "X-Pezzo-Environment": "Production", } ) llm_result = llm.predict("Tell me 5 fun facts about yourself!")