diff --git a/Source/Chatbook/ChatModes/ContentSuggestions.wl b/Source/Chatbook/ChatModes/ContentSuggestions.wl index 78278d9f..799673ae 100644 --- a/Source/Chatbook/ChatModes/ContentSuggestions.wl +++ b/Source/Chatbook/ChatModes/ContentSuggestions.wl @@ -10,8 +10,8 @@ Needs[ "Wolfram`Chatbook`ChatModes`Common`" ]; (* ::**************************************************************************************************************:: *) (* ::Section::Closed:: *) (*Configuration*) -$suggestionsService := If[ TrueQ @ $llmKit && StringQ @ $llmKitService, $llmKitService, "OpenAI" ]; -$suggestionsAuthentication := If[ TrueQ @ $llmKit, "LLMKit", Automatic ]; +$suggestionsService := $llmKitService; +$suggestionsAuthentication := "LLMKit"; $stripWhitespace = True; $defaultWLContextString = ""; $finishReason = None; diff --git a/Source/Chatbook/ChatModes/ShowNotebookAssistance.wl b/Source/Chatbook/ChatModes/ShowNotebookAssistance.wl index 3f692e5d..dcf40f8c 100644 --- a/Source/Chatbook/ChatModes/ShowNotebookAssistance.wl +++ b/Source/Chatbook/ChatModes/ShowNotebookAssistance.wl @@ -15,6 +15,7 @@ $workspaceChatWidth := $workspaceChatWidth = Switch[ $OperatingSystem, "MacOSX", $notebookAssistanceBaseSettings = <| "AppName" -> "NotebookAssistance", "LLMEvaluator" -> "NotebookAssistant", + "Model" -> <| "Service" -> "LLMKit", "Name" -> Automatic |>, "PromptGenerators" -> { "RelatedDocumentation" }, "ServiceCaller" -> "NotebookAssistance", "ToolOptions" -> <| "WolframLanguageEvaluator" -> <| "AppendURIPrompt" -> True, "Method" -> "Session" |> |>, diff --git a/Source/Chatbook/Services.wl b/Source/Chatbook/Services.wl index 48c5e216..c1be0135 100644 --- a/Source/Chatbook/Services.wl +++ b/Source/Chatbook/Services.wl @@ -16,6 +16,7 @@ $ContextAliases[ "llm`" ] = "LLMServices`"; (*Configuration*) $llmKit := $llmKit = $VersionNumber >= 14.1; $llmKitService := LogChatTiming @ getLLMKitService[ ]; +$fallbackLLMKitService = "AzureOpenAI"; $allowConnectionDialog = True; $enableLLMServices = Automatic; $modelListCache = <| |>; @@ -57,7 +58,7 @@ getLLMKitService // beginDefinition; getLLMKitService[ ] := (LLMSynthesize; getLLMKitService @ Wolfram`LLMFunctions`Common`$LLMKitInfo); getLLMKitService[ KeyValuePattern[ "currentProvider" -> service_String ] ] := service; getLLMKitService[ None ] := getUpdatedLLMKitService[ ]; -getLLMKitService[ _ ] := None; +getLLMKitService[ _ ] := $fallbackLLMKitService; getLLMKitService // endDefinition; (* ::**************************************************************************************************************:: *)