Skip to content

Commit 7b358b2

Browse files
Merge pull request #199 from psu-libraries/bugfix-makes-default-for-llm-model
"Default" is new default
2 parents b528fe5 + c8486bf commit 7b358b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/jobs/image_alt_text_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def perform(job_uuid, tmp_path)
1313
alt_text = client.process_image(
1414
tmp_path,
1515
prompt: Rails.root.join('prompt.txt').read,
16-
model_id: ENV.fetch('LLM_MODEL', 'nil')
16+
model_id: ENV.fetch('LLM_MODEL', 'default')
1717
)
1818
job.update(
1919
status: 'completed',

spec/jobs/image_alt_text_job_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
it 'calls the Alt Text gem' do
2929
expect(alt_text_gem).to have_received(:process_image).with(
30-
/.+\.jpg/, prompt: File.read('prompt.txt'), model_id: ENV.fetch('LLM_MODEL', nil)
30+
/.+\.jpg/, prompt: File.read('prompt.txt'), model_id: ENV.fetch('LLM_MODEL', 'default')
3131
)
3232
end
3333

0 commit comments

Comments
 (0)