Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/beta/threads/mod.ts>Run.LastError

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface Run.LastError
import { type Run } from "https://deno.land/x/openai@v4.69.0/resources/beta/threads/mod.ts";
const { LastError } = Run;

The last error associated with this run. Will be null if there are no errors.

Properties

code: "server_error" | "rate_limit_exceeded" | "invalid_prompt"

One of server_error, rate_limit_exceeded, or invalid_prompt.

message: string

A human-readable description of the error.