Add logging statements for retrieving and updating configuration in config.ts
This commit is contained in:
parent
93ff88a329
commit
171fddd5b6
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ const router = express.Router();
|
||||||
router.get('/', async (_, res) => {
|
router.get('/', async (_, res) => {
|
||||||
try {
|
try {
|
||||||
const config = {};
|
const config = {};
|
||||||
|
console.log('Retrieving configuration');
|
||||||
|
|
||||||
const providers = await getAvailableProviders();
|
const providers = await getAvailableProviders();
|
||||||
|
|
||||||
|
@ -55,6 +56,7 @@ router.post('/', async (req, res) => {
|
||||||
OLLAMA: config.ollamaApiUrl,
|
OLLAMA: config.ollamaApiUrl,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
console.log('Updated config:', updatedConfig);
|
||||||
|
|
||||||
updateConfig(updatedConfig);
|
updateConfig(updatedConfig);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue