1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 06:55:21 +02:00

Use gpt-4 turbo

This commit is contained in:
Josh Pigford 2024-01-04 13:54:23 -06:00
parent dc64d09bc7
commit 9d9d0bbbbd

View file

@ -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?" },