update other tests

This commit is contained in:
Louis Dureuil 2024-09-02 11:31:31 +02:00
parent 30a143f149
commit 03fda78901
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -5617,7 +5617,7 @@ mod tests {
},
),
prompt: PromptData {
template: "{% for field in fields %} {{ field.name }}: {{ field.value }}\n{% endfor %}",
template: "{% for field in fields %}{% if field.is_searchable and field.value != nil %}{{ field.name }}: {{ field.value }}\n{% endif %}{% endfor %}",
},
},
user_provided: RoaringBitmap<[0]>,
@ -5657,7 +5657,7 @@ mod tests {
},
),
prompt: PromptData {
template: "{% for field in fields %} {{ field.name }}: {{ field.value }}\n{% endfor %}",
template: "{% for field in fields %}{% if field.is_searchable and field.value != nil %}{{ field.name }}: {{ field.value }}\n{% endif %}{% endfor %}",
},
},
user_provided: RoaringBitmap<[]>,

View File

@ -190,7 +190,7 @@ async fn secrets_are_hidden_in_settings() {
"source": "rest",
"apiKey": "My suXXXXXX...",
"dimensions": 4,
"documentTemplate": "{% for field in fields %} {{ field.name }}: {{ field.value }}\n{% endfor %}",
"documentTemplate": "{% for field in fields %}{% if field.is_searchable and field.value != nil %}{{ field.name }}: {{ field.value }}\n{% endif %}{% endfor %}",
"url": "https://localhost:7777",
"request": "{{text}}",
"response": "{{embedding}}",