Skip to content

Commit

Permalink
Distinguish an empty system message from an unspecified one
Browse files Browse the repository at this point in the history
.. when deciding whether to use the API's default system message
  • Loading branch information
jepler committed Apr 10, 2024
1 parent 95a0a29 commit 25dee73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/chap/commands/tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ def main(obj: Obj, replace_system_prompt: bool) -> None:
assert session_filename is not None

if replace_system_prompt:
session[0].content = obj.system_message or api.system_message
session[0].content = (
api.system_message if obj.system_message is None else obj.system_message
)

tui = Tui(api, session)
tui.run()
Expand Down

0 comments on commit 25dee73

Please sign in to comment.