mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 14:12:37 +00:00
Merge branch 'meta-llama:main' into main
This commit is contained in:
commit
4136accf48
6 changed files with 7 additions and 14 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -18,4 +18,4 @@ class LogFormat(Enum):
|
|||
|
||||
@json_schema_type
|
||||
class ConsoleConfig(BaseModel):
|
||||
log_format: LogFormat = LogFormat.JSON
|
||||
log_format: LogFormat = LogFormat.TEXT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue