fix: preserve null end_time when rendering dataset segments template (#1326)

* fix: preserve null end_time when rendering dataset segments template

* deps(qlib): bump qlib revision to 2fb9380

* fix: lint error
This commit is contained in:
Linlang
2026-02-13 10:50:46 +08:00
committed by GitHub
parent 3dbd703828
commit 6196ba31f2
14 changed files with 40 additions and 65 deletions
+2 -5
View File
@@ -30,13 +30,10 @@ class TestEmbedding(unittest.TestCase):
"""Test embedding with very long text that exceeds token limits"""
# Create a very long text that will definitely exceed embedding token limits
# Using a repetitive pattern to simulate a real long document
long_content = (
"""
long_content = """
This is a very long document that contains a lot of repetitive content to test the embedding truncation functionality.
We need to make this text long enough to exceed the typical embedding model token limits of around 8192 tokens.
"""
* 1000
) # This should create a text with approximately 50,000+ tokens
""" * 1000 # This should create a text with approximately 50,000+ tokens
# This should trigger the gradual truncation mechanism
emb = APIBackend().create_embedding(long_content)