Skip to content

Commit

Permalink
Merge pull request #941 from WolframResearch/feature/version-in-servi…
Browse files Browse the repository at this point in the history
…ce-caller

Add paclet version to Chatbook service caller string
  • Loading branch information
rhennigan authored Nov 20, 2024
2 parents e2c7c46 + 88112be commit 190523d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PacletInfo.wl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PacletObject[ <|
"Name" -> "Wolfram/Chatbook",
"PublisherID" -> "Wolfram",
"Version" -> "1.5.2",
"Version" -> "1.5.2.1",
"WolframVersion" -> "14.1+",
"Description" -> "Wolfram Notebooks + LLMs",
"License" -> "MIT",
Expand Down
5 changes: 4 additions & 1 deletion Source/Chatbook/Common.wl
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ setServiceCaller[ eval_, caller_ ] := (
);

setServiceCaller[ eval_, caller: $$serviceCaller, { current___ } ] :=
Block[ { ServiceConnectionUtilities`$Caller = DeleteDuplicates @ Flatten @ { current, "Chatbook", caller } },
Block[ { ServiceConnectionUtilities`$Caller = DeleteDuplicates @ Flatten @ { current, $chatbookCaller, caller } },
eval
];

Expand All @@ -860,6 +860,9 @@ setServiceCaller[ eval_, caller_, _ ] :=
setServiceCaller // Attributes = { HoldFirst };
setServiceCaller // endDefinition;


$chatbookCaller := $chatbookCaller = "Chatbook-" <> $thisPaclet[ "Version" ];

(* ::**************************************************************************************************************:: *)
(* ::Subsubsection::Closed:: *)
(*chatbookServiceCaller*)
Expand Down

0 comments on commit 190523d

Please sign in to comment.