Skip to content

Commit

Permalink
fix: OpenaiAssistantConfiguration has been renamed to OpenaiAssistant
Browse files Browse the repository at this point in the history
We will create this instance manually
  • Loading branch information
nicolas-entourage committed Dec 19, 2024
1 parent 39e3972 commit 479d261
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ def change
unless Rails.env.test?
prompt = "I created a {{action_type}} \"{{name}}\" : {{description}}. What are the most relevant recommandations? The following text contains all the possible recommandations."

OpenaiAssistantConfiguration.new(
version: 1,
api_key: ENV['OPENAI_API_KEY'],
assistant_id: ENV['OPENAI_API_ASSISTANT_ID'],
prompt: prompt,
poi_from_file: true,
resource_from_file: true,
days_for_actions: 30,
days_for_outings: 30
).save
# OpenaiAssistantConfiguration.new(
# version: 1,
# api_key: ENV['OPENAI_API_KEY'],
# assistant_id: ENV['OPENAI_API_ASSISTANT_ID'],
# prompt: prompt,
# poi_from_file: true,
# resource_from_file: true,
# days_for_actions: 30,
# days_for_outings: 30
# ).save
end
end
end

0 comments on commit 479d261

Please sign in to comment.