mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-16 19:29:27 +00:00
minor cleanup and prompt update
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
38205492f8
commit
eb8acd24b0
6 changed files with 30 additions and 47 deletions
|
|
@ -361,8 +361,7 @@ class TestExtractCitationsFromText:
|
|||
|
||||
assert cleaned_text == expected_clean_text
|
||||
assert annotations == expected_annotations
|
||||
# OpenAI typically cites at the end of the sentence but we support the middle just in case,
|
||||
# which makes the position the start of the next word.
|
||||
# OpenAI cites at the end of the sentence
|
||||
assert cleaned_text[expected_annotations[0].index] == "."
|
||||
assert cleaned_text[expected_annotations[1].index] == "?"
|
||||
assert cleaned_text[expected_annotations[2].index] == "!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue