Skip to content

Latest commit

 

History

History
executable file
·
20 lines (17 loc) · 501 Bytes

USAGE.md

File metadata and controls

executable file
·
20 lines (17 loc) · 501 Bytes
import {
  CancelFineTuneRequest,
  CancelFineTuneResponse
} from "@speakeasy-api/openai/dist/sdk/models/operations";

import { AxiosError } from "axios";
import { Gpt } from "@speakeasy-api/openai";
const sdk = new Gpt();

const req: CancelFineTuneRequest = {
  fineTuneId: "ft-AF1WoRqd3aJAHsqc9NY7iL8F",
};

sdk.openAI.cancelFineTune(req).then((res: CancelFineTuneResponse | AxiosError) => {
   // handle response
});