chore: update something
Browse files
app.py
CHANGED
|
@@ -403,7 +403,7 @@ def generate(
|
|
| 403 |
top_p: float = 0.95,
|
| 404 |
top_k: int = 50,
|
| 405 |
repetition_penalty: float = 1.0,
|
| 406 |
-
|
| 407 |
) -> Iterator[str]:
|
| 408 |
# print()
|
| 409 |
# print("allow_used_tools:\n", allow_used_tools)
|
|
@@ -422,9 +422,9 @@ def generate(
|
|
| 422 |
conversation.append({"role": "tools", "content": supported_tools})
|
| 423 |
|
| 424 |
if references is None:
|
| 425 |
-
references = [
|
| 426 |
else:
|
| 427 |
-
references.insert(0,
|
| 428 |
|
| 429 |
if (
|
| 430 |
references is not None
|
|
|
|
| 403 |
top_p: float = 0.95,
|
| 404 |
top_k: int = 50,
|
| 405 |
repetition_penalty: float = 1.0,
|
| 406 |
+
other_client_info: str = None,
|
| 407 |
) -> Iterator[str]:
|
| 408 |
# print()
|
| 409 |
# print("allow_used_tools:\n", allow_used_tools)
|
|
|
|
| 422 |
conversation.append({"role": "tools", "content": supported_tools})
|
| 423 |
|
| 424 |
if references is None:
|
| 425 |
+
references = [other_client_info]
|
| 426 |
else:
|
| 427 |
+
references.insert(0, other_client_info)
|
| 428 |
|
| 429 |
if (
|
| 430 |
references is not None
|