Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thejamescollins committed Feb 23, 2023
1 parent 678d42e commit 721378b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.2.1 - 2023-02-23

### Fixed
- Fix error when retrieving a response from the `.edits.create()` handler method.

### Changed
- Remove `id` and `model` required properties from the `.edits.create()` handler method response, as they are no longer returned by OpenAI's API.

## 0.2.0 - 2022-11-14

### Added
Expand Down
4 changes: 3 additions & 1 deletion dist/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const __classPrivateFieldGet =
(this && this.__classPrivateFieldGet) ||
function (receiver, state, kind, f) {
if (kind === 'a' && !f) throw new TypeError('Private accessor was defined without a getter');
if (typeof state === 'function' ? receiver !== state || !f : !state.has(receiver)) { throw new TypeError('Cannot read private member from an object whose class did not declare it'); }
if (typeof state === 'function' ? receiver !== state || !f : !state.has(receiver)) {
throw new TypeError('Cannot read private member from an object whose class did not declare it');
}
return kind === 'm' ? f : kind === 'a' ? f.call(receiver) : f ? f.value : state.get(receiver);
};
const __importDefault =
Expand Down
2 changes: 0 additions & 2 deletions dist/models/edits/create-response.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import CreateResponseChoicesItem from './create-response-choices-item';
import CreateResponseUsage from './create-response-usage';
export default interface CreateResponse {
id: string;
object: string;
created: number;
model: string;
choices: CreateResponseChoicesItem[];
usage: CreateResponseUsage;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tectalic/openai",
"version": "0.2.0",
"version": "0.2.1",
"description": "Tectalic OpenAI REST API Client",
"homepage": "https://tectalic.com/apis/openai",
"keywords": [
Expand Down
2 changes: 0 additions & 2 deletions src/models/edits/create-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ import CreateResponseChoicesItem from './create-response-choices-item';
import CreateResponseUsage from './create-response-usage';

export default interface CreateResponse {
id: string;
object: string;
created: number;
model: string;
choices: CreateResponseChoicesItem[];
usage: CreateResponseUsage;
}

0 comments on commit 721378b

Please sign in to comment.