Skip to content

Commit

Permalink
changed api url
Browse files Browse the repository at this point in the history
  • Loading branch information
bhattaraijay05 committed Aug 26, 2023
1 parent 18432d8 commit e5eaf2f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion renderer/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export const Chat = memo(({ stopConversationRef }: Props) => {
if (!response.ok) {
homeDispatch({ field: "loading", value: false });
homeDispatch({ field: "messageIsStreaming", value: false });
toast.error("Please select a model");
toast.error(response.statusText);
return;
}
const data = response.body;
Expand Down
4 changes: 2 additions & 2 deletions renderer/components/ModelStore/Store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const Header = ({
inverted: true,
icon: IconHeart,
onCLick: () => {
socket.emit("open_link", "https://freedom-gpt.vercel.app/donation");
socket.emit("open_link", "https://app.freedomgpt.com/donation");
},
},
];
Expand Down Expand Up @@ -1028,7 +1028,7 @@ const Models = ({ showCloudModel }: { showCloudModel: boolean }) => {
const fetchModelsFromCloud = async () => {
try {
const response = await axios
.get<PluginWithModel[]>("https://freedom-gpt.vercel.app/api/models")
.get<PluginWithModel[]>("https://app.freedomgpt.com/api/models")
.then((res) => res.data);
response.forEach((data: any) => {
const plugin: PluginWithModel = {
Expand Down
2 changes: 1 addition & 1 deletion renderer/pages/api/liberty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async function handler(
.json({ error: "Both question and authkey are required." });
}

const apiUrl = "https://freedom-gpt.vercel.app/api/liberty";
const apiUrl = "https://app.freedomgpt.com/api/liberty";

const headers = {
Authorization: `Bearer ${authkey}`,
Expand Down
2 changes: 1 addition & 1 deletion renderer/pages/api/socketio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const SocketHandler = (req: NextApiRequest, res: NextApiResponseServerIO) => {
});

socket.on("open_donation", () => {
shell.openExternal("https://freedom-gpt.vercel.app/donation", {
shell.openExternal("https://app.freedomgpt.com/donation", {
activate: true,
});
});
Expand Down

0 comments on commit e5eaf2f

Please sign in to comment.