Skip to content

Commit

Permalink
Merge branch 'main' into add-blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
krschacht committed May 13, 2024
2 parents 1fb1e1c + d107334 commit 04fbc8b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 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
9 changes: 8 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_05_04_212345) do
ActiveRecord::Schema[7.1].define(version: 2024_05_13_184146) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down Expand Up @@ -96,6 +96,13 @@
t.index ["user_id"], name: "index_documents_on_user_id"
end

create_table "llms", force: :cascade do |t|
t.string "name"
t.text "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "messages", force: :cascade do |t|
t.bigint "conversation_id", null: false
t.string "role", null: false
Expand Down
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ console_command = '/rails/bin/rails console'
X-Forwarded-Proto = 'https'

[[vm]]
memory = '512mb'
memory = '1gb'
cpu_kind = 'shared'
cpus = 1

Expand Down

0 comments on commit 04fbc8b

Please sign in to comment.