Skip to content

Commit

Permalink
Merge pull request #874 from WolframResearch/bugfix/fix-final-progres…
Browse files Browse the repository at this point in the history
…s-text-for-non-streaming-models

Show progress text for non streaming models
  • Loading branch information
rhennigan authored Oct 31, 2024
2 parents f8d4fff + bd61aef commit bf56197
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ExperimentalRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Experimental Release

on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
push:
branches: [main]

concurrency:
group: ${{ github.ref }}
Expand Down
1 change: 1 addition & 0 deletions Source/Chatbook/ChatState.wl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ withChatState[ eval_ ] :=
$toolCallCount = 0,
$openToolCallBoxes = Automatic,
$progressContainer = None,
$showProgressText = $showProgressText,

(* Values used for token budgets during cell serialization: *)
$cellStringBudget = $cellStringBudget,
Expand Down
1 change: 1 addition & 0 deletions Source/Chatbook/SendChat.wl
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ chatSubmit0[
auth = settings[ "Authentication" ];
stop = makeStopTokens @ settings;

setProgressDisplay[ "Waiting for response", 1.0 ];
result = ConfirmMatch[
Quiet[
LLMServices`Chat[
Expand Down
2 changes: 2 additions & 0 deletions Source/Chatbook/Settings.wl
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ resolveAutoSettings[ settings0_Association ] := Enclose[
$conversionRules = resolved[ "ConversionRules" ];
$openToolCallBoxes = resolved[ "OpenToolCallBoxes" ];

If[ resolved[ "ForceSynchronous" ], $showProgressText = True ];

setLLMKitFlags @ resolved;
];
If[ $catching, $currentChatSettings = resolved ];
Expand Down

0 comments on commit bf56197

Please sign in to comment.