Skip to content

Commit

Permalink
Rename url params
Browse files Browse the repository at this point in the history
  • Loading branch information
abetlen committed Apr 23, 2024
1 parent 4bbe155 commit 90ce004
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2239,7 +2239,7 @@ const ErrorToast = ({
};

const getInitialMessagesFromParams = (params: URLSearchParams) => {
const initialMessagesParam = params.get("initialMessages");
const initialMessagesParam = params.get("messages");
let initialMessages = INITIAL_MESSAGES;
if (initialMessagesParam) {
try {
Expand All @@ -2252,7 +2252,7 @@ const getInitialMessagesFromParams = (params: URLSearchParams) => {
};

const getInitialToolsFromParams = (params: URLSearchParams) => {
const initialToolsParam = params.get("initialTools");
const initialToolsParam = params.get("tools");
let initialTools = INITIAL_TOOLS;
if (initialToolsParam) {
try {
Expand All @@ -2265,7 +2265,7 @@ const getInitialToolsFromParams = (params: URLSearchParams) => {
};

const getInitialToolChoiceFromParams = (params: URLSearchParams) => {
const initialToolChoiceParam = params.get("initialToolChoice");
const initialToolChoiceParam = params.get("tool_choice");
let initialToolChoice = INITIAL_TOOL_CHOICE;
if (initialToolChoiceParam) {
try {
Expand All @@ -2278,7 +2278,7 @@ const getInitialToolChoiceFromParams = (params: URLSearchParams) => {
};

const getInitialSettingsFromParams = (params: URLSearchParams) => {
const initialSettingsParam = params.get("initialSettings");
const initialSettingsParam = params.get("settings");
let initialSettings = INITIAL_SETTINGS;
if (initialSettingsParam) {
try {
Expand Down

0 comments on commit 90ce004

Please sign in to comment.