Skip to main content
Module

x/openai/mod.ts>OpenAI#getModel

Unofficial Deno wrapper for the Open Ai api
Extremely Popular
Go to Latest
method OpenAI.prototype.getModel
import { OpenAI } from "https://deno.land/x/openai@1.4.3/mod.ts";

Retrieves a model instance, providing basic information about the model such as the owner and permissioning.

https://platform.openai.com/docs/api-reference/models/retrieve

Parameters

model: string

Returns

Promise<Model>