Skip to content

Commit

Permalink
Hotfix: Upgrade to new GPT-4 model
Browse files Browse the repository at this point in the history
  • Loading branch information
krschacht committed May 13, 2024
1 parent e4e19f4 commit 1ff8799
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrate/20240513184146_add_new_openai_model.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class AddNewOpenaiModel < ActiveRecord::Migration[7.1]
def up
Assistant.where(model: "gpt-4-turbo-2024-04-09").update_all(model: "gpt-4o-2024-05-13")
end

def down
Assistant.where(model: "gpt-4o-2024-05-13").update_all(model: "gpt-4-turbo-2024-04-09")
end
end

0 comments on commit 1ff8799

Please sign in to comment.