Group Abstract Group Abstract

Message Boards Message Boards

Specifying the LLM in Chat Notebooks Doesn't "stick"

Posted 2 years ago

Greetings!

I recently got access to ChatGPT's GPT-4 API and I'm able to use in Mathematica 13.3's Chat Notebooks. However, when I select "GPT-4" under the "Advanced Settings" > "Model" in the inline chat cell config, it doesn't save for subsequent chat input cells. Is there anyway to make "GPT-4" the default model for new chat cells in a Chat-enabled Notebook?

Selecting the model in every new chat cell is tedious.

POSTED BY: Jacob Evans
4 Replies
POSTED BY: Avery Davis
Posted 2 years ago

Strange. I don't have that toolbar button you noted. Is there something I need to do to get it show?

POSTED BY: Jacob Evans

Try this, for now:

CurrentValue[$FrontEnd, TaggingRules] = GeneralUtilities`ToAssociations@CurrentValue[$FrontEnd, TaggingRules];
CurrentValue[$FrontEnd, {TaggingRules, "ChatNotebookSettings", "Model"}] = "gpt-4"

See Avery's comment for a more comprehensive answer. My code snippet will set "gpt-4" once and for all (at the $FrontEnd level, which is persistent across frontend notebook sessions)

POSTED BY: Arnoud Buzing
Posted 2 years ago
POSTED BY: Jacob Evans
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard