Skip to content

Commit 96290ae

Browse files
committed
Update files spec to remove deprecated answers type
1 parent 7ab50d6 commit 96290ae

File tree

12 files changed

+110
-2045
lines changed

12 files changed

+110
-2045
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ You can use the embeddings endpoint to get a vector of numbers representing an i
136136
Put your data in a `.jsonl` file like this:
137137

138138
```json
139-
{"text": "puppy A is happy", "metadata": "emotional state of puppy A"}
140-
{"text": "puppy B is sad", "metadata": "emotional state of puppy B"}
139+
{"prompt":"Overjoyed with my new phone! ->", "completion":" positive"}
140+
{"prompt":"@lakers disappoint for a third straight night ->", "completion":" negative"}
141141
```
142142

143143
and pass the path to `client.files.upload` to upload it to OpenAI, and then interact with it:
144144

145145
```ruby
146-
client.files.upload(parameters: { file: "path/to/puppy.jsonl", purpose: "search" })
146+
client.files.upload(parameters: { file: "path/to/sentiment.jsonl", purpose: "fine-tune" })
147147
client.files.list
148148
client.files.retrieve(id: 123)
149149
client.files.delete(id: 123)

spec/fixtures/cassettes/files_delete.yml

Lines changed: 6 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/cassettes/files_delete_retrieve.yml

Lines changed: 11 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/cassettes/files_delete_upload.yml

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)