Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ export const SIGN_MESSAGE_PORT = 6969;
export const SIGN_MESSAGE = "Register Bitte Agent!";
export const BITTE_CONFIG_ENV_KEY = "BITTE_CONFIG";
export const BITTE_KEY_ENV_KEY = "BITTE_KEY";
export const BITTE_HISTORY_API_URL = "https://api.bitte.ai/v1/history";

export const DEFAULT_PORT = 3000;
3 changes: 2 additions & 1 deletion src/services/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { promises as fs } from "node:fs";
import path from "node:path";

import { type ApiConfig } from "../commands/dev";
import { BITTE_HISTORY_API_URL } from "../config/constants";

export async function startUIServer(
apiConfig: ApiConfig,
Expand Down Expand Up @@ -93,7 +94,7 @@ export async function startUIServer(
if (!id) {
throw new Error("No history id on request.");
}
const url = `${apiConfig.url}/history?id=${id}`;
const url = `${BITTE_HISTORY_API_URL}?id=${id}`;

const response = await fetch(url, {
headers: {
Expand Down