mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-28 02:44:22 +01:00
fix: more stable generation
This commit is contained in:
@@ -44,7 +44,7 @@ def get_response(prompt_list: List[Tuple[str, str]]):
|
||||
for prompt in prompt_list
|
||||
]
|
||||
)
|
||||
response_generator_with_timeout = timeout_generator_wrapper(response_generator, 5)
|
||||
response_generator_with_timeout = timeout_generator_wrapper(response_generator, 10)
|
||||
total_chars_prompt += sum(len(prompt[1]) for prompt in prompt_list)
|
||||
complete_string = ''
|
||||
for chunk in response_generator_with_timeout:
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -129,7 +129,7 @@ The executor is not allowed to use the GPU.
|
||||
The executor is not allowed to access a database.
|
||||
The executor is not allowed to access a display.
|
||||
The executor is not allowed to access external apis.
|
||||
The executor is not allowed to access the file system.
|
||||
The executor is not allowed to load data from the local file system it did not create.
|
||||
The executor is not allowed to use a pre-trained model.
|
||||
The executor is not allowed to train a model.
|
||||
'''
|
||||
Reference in New Issue
Block a user