Skip to content

Commit

Permalink
Merge pull request #1037 from dimagi/cs/add_seed_message_to_versions
Browse files Browse the repository at this point in the history
Consider seed message as well for versioning
  • Loading branch information
SmittieC authored Jan 14, 2025
2 parents 48b6aa2 + 4a46726 commit 20b8d30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions apps/experiments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,7 @@ def _format_assistant(assistant) -> str:
fields=[
VersionField(group_name="General", name="name", raw_value=self.name),
VersionField(group_name="General", name="description", raw_value=self.description),
VersionField(group_name="General", name="seed_message", raw_value=self.seed_message),
VersionField(
group_name="General",
name="allowlist",
Expand Down
7 changes: 2 additions & 5 deletions templates/experiments/experiment_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,9 @@ <h3 class="text-md font-bold">{% translate "Please note" %}</h3>

<input type="radio" name="main_tabs" role="tab" class="tab" aria-label="Advanced">
<div role="tabpanel" class="tab-content">
{% render_form_fields form "debug_mode_enabled" "trace_provider" %}
<span x-show="type === 'llm'">
{% render_form_fields form "seed_message" %}
</span>
{% render_form_fields form "debug_mode_enabled" "trace_provider" "seed_message" %}
<span x-show="type == 'assistant'">
{% render_form_fields form "seed_message" "citations_enabled" %}
{% render_form_fields form "citations_enabled" %}
</span>
</div>
</div>
Expand Down

0 comments on commit 20b8d30

Please sign in to comment.