openai.openai._constructor_
Home > @runlightyear/openai > OpenAI > (constructor)
OpenAI.(constructor)
Constructs a new instance of the OpenAI
class
constructor(props: OpenAIProps);
Parameters
Parameter | Type | Description |
---|---|---|
props | OpenAIProps |
Example
defineAction({
name: "openAIExample",
title: "OpenAI Example"
apps: ["openai"],
run: async ({ auths }) => {
const openai = new OpenAI({ auth: auths.openai });
}
}