feat: implement Azure Image Chooser tool with help content and empty tool placeholder
This commit is contained in:
@@ -37,6 +37,7 @@ const renderBody = z.object({
|
||||
const makeApp = () => {
|
||||
const app = express();
|
||||
const port = Number.parseInt(process.env.PORT ?? "3000", 10);
|
||||
const host = process.env.HOST ?? "0.0.0.0";
|
||||
const subscriptionId = process.env.AZURE_SUBSCRIPTION_ID;
|
||||
|
||||
app.use(cors());
|
||||
@@ -151,14 +152,14 @@ const makeApp = () => {
|
||||
});
|
||||
}
|
||||
|
||||
return { app, port };
|
||||
return { app, port, host };
|
||||
};
|
||||
|
||||
if (require.main === module) {
|
||||
const { app, port } = makeApp();
|
||||
const server = app.listen(port, () => {
|
||||
const { app, port, host } = makeApp();
|
||||
const server = app.listen(port, host, () => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`azure-image-chooser listening on ${port}`);
|
||||
console.log(`azure-image-chooser listening on ${host}:${port}`);
|
||||
});
|
||||
|
||||
let shuttingDown = false;
|
||||
|
||||
Reference in New Issue
Block a user