mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-20 15:14:20 +01:00
fix: more stable generation
This commit is contained in:
@@ -16,7 +16,7 @@ class MyInfoExecutor(Executor):
|
||||
def foo(self, docs: DocumentArray, **kwargs) => DocumentArray:
|
||||
for d in docs:
|
||||
d.load_uri_to_blob()
|
||||
d.tags['my_info'] = {'byte_length': len(d.blob)}
|
||||
d.tags['my_info'] = {'byte_length': len(d.blob)} # tags can only be a flat dictionary where keys are strings and values are strings, ints, floats, or bools
|
||||
d.blob = None
|
||||
return docs
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user