Imported from yunsopyeong/-Lawyer-s-Field-Notes (AGENTS.md). Install upstream with npx skills add yunsopyeong/-Lawyer-s-Field-Notes. Copyright stays with the author.
import OpenAI from "openai";
export function getOpenAIClient() {
const apiKey = process.env.OPENAI_API_KEY;
if (!apiKey) {
throw new Error("OPENAI_API_KEY가 설정되지 않았습니다.");
}
return new OpenAI({ apiKey });
}
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/yunsopyeong-lawyer-s-field-notes-lawyer-s-field-notes/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.