Skip to content

Commit e950ade

Browse files
committed
chat works.
Now to get - Conversation saving/loading, - Character card loading/editing/creating/saving - Notes loading/editing/saving
1 parent 7df4be8 commit e950ade

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tldw_app/Chat/Chat_Functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def approximate_token_count(history):
367367
'messages_payload': 'input_data',
368368
'prompt': 'custom_prompt', # This is 'prompt' for generate, 'messages' for chat
369369
'temp': 'temperature',
370-
'system_message': 'system', # Part of request body
370+
'system_message': 'system_message', # Part of request body
371371
'streaming': 'stream',
372372
'topp': 'top_p',
373373
'topk': 'top_k',

tldw_app/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,10 +1178,10 @@ def get_api_key(toml_key: str, env_var: str, section: Dict = api_section) -> Opt
11781178
11791179
[chat_defaults]
11801180
# Default settings specifically for the 'Chat' tab
1181-
provider = "Ollama"
1182-
model = "llama3:latest"
1181+
provider = "DeepSeek"
1182+
model = "deepseek-chat"
11831183
system_prompt = "You are a helpful AI assistant."
1184-
temperature = 0.7
1184+
temperature = 1.3
11851185
top_p = 0.95
11861186
min_p = 0.05
11871187
top_k = 50

0 commit comments

Comments
 (0)