Skip to content

Commit 02492ec

Browse files
committed
Remove deprecated /edits endpoint
1 parent 1ab02eb commit 02492ec

File tree

3 files changed

+0
-132
lines changed

3 files changed

+0
-132
lines changed

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -470,22 +470,6 @@ puts response["choices"].map { |c| c["text"] }
470470
# => [", there lived a great"]
471471
```
472472

473-
### Edits
474-
475-
Send a string and some instructions for what to do to the string:
476-
477-
```ruby
478-
response = client.edits(
479-
parameters: {
480-
model: "text-davinci-edit-001",
481-
input: "What day of the wek is it?",
482-
instruction: "Fix the spelling mistakes"
483-
}
484-
)
485-
puts response.dig("choices", 0, "text")
486-
# => What day of the week is it?
487-
```
488-
489473
### Embeddings
490474

491475
You can use the embeddings endpoint to get a vector of numbers representing an input. You can then compare these vectors for different inputs to efficiently check how similar the inputs are.

spec/fixtures/cassettes/edits_text-davinci-edit-001_there_are_7_days_in_a_wek_and_between_28_and_31_in_a_month_.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.

spec/openai/client/edits_spec.rb

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)