Merge branch 'meta-llama:main' into main

This commit is contained in:
Chacksu 2024-11-21 19:49:53 -05:00 committed by GitHub
commit 4136accf48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 14 deletions

View file

@ -396,12 +396,6 @@ class ChatAgent(ShieldRunnerMixin):
n_iter = 0
while True:
msg = input_messages[-1]
if msg.role == Role.user.value:
color = "blue"
elif msg.role == Role.ipython.value:
color = "yellow"
else:
color = None
if len(str(msg)) > 1000:
msg_str = f"{str(msg)[:500]}...<more>...{str(msg)[-500:]}"
else:

View file

@ -18,4 +18,4 @@ class LogFormat(Enum):
@json_schema_type
class ConsoleConfig(BaseModel):
log_format: LogFormat = LogFormat.JSON
log_format: LogFormat = LogFormat.TEXT