From 9d9d0bbbbd86e4d78c8d7dc125b3cb3323548223 Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Thu, 4 Jan 2024 13:54:23 -0600 Subject: [PATCH] Use gpt-4 turbo --- app/sidekiq/sync_security_details_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sidekiq/sync_security_details_job.rb b/app/sidekiq/sync_security_details_job.rb index 52c3e170..cbdedf7f 100644 --- a/app/sidekiq/sync_security_details_job.rb +++ b/app/sidekiq/sync_security_details_job.rb @@ -74,7 +74,7 @@ class SyncSecurityDetailsJob openai = OpenAI::Client.new(access_token: ENV['OPENAI_ACCESS_TOKEN']) gpt_response = openai.chat( parameters: { - model: "gpt-4", + model: "gpt-4-1106-preview", messages: [ { role: "system", content: "You are tasked with finding the domain for a company. You are given the company name and the ticker symbol. You are given the following information:\n\nSecurity Name: #{security_name}\nSecurity Symbol: #{symbol}\n\nYou exclusively respond with only the domain and absolutely nothing else." }, { role: "user", content: "What is the domain for this company?" },