Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gecBurton committed Jan 27, 2025
1 parent 234c148 commit f1ad023
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
def back_populate_context_window_size(apps, schema_editor):
ChatLLMBackend = apps.get_model("redbox_core", "ChatLLMBackend")
for llm in ChatLLMBackend.objects.all():
llm.context_window_size = context_window_sizes.get(llm.name)
llm.context_window_size = context_window_sizes.get(llm.name, 0)
llm.save()

ChatLLMBackend.objects.filter(context_window_size__isnull=True).delete()


class Migration(migrations.Migration):

dependencies = [
Expand Down

0 comments on commit f1ad023

Please sign in to comment.