Don't log when no endpoint available. Remove pointless header

362bdf0c4634951882d3788b586f284e71fa2d57

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -3Showing whitespace changes
src/endpoints/backends/text-completions.js+2 -3
@@ -237,7 +237,7 @@ router.post('/props', jsonParser, async function (request, response) {
237237 try {
238238 const baseUrl = trimV1(request.body.api_server);
239239 const args = {
240240 headers: { 'Content-Type': 'application/json' },
241241 };
242242
243243 setAdditionalHeaders(request, args, baseUrl);
@@ -247,7 +247,6 @@ router.post('/props', jsonParser, async function (request, response) {
247247 const propsReply = await fetch(propsUrl, args);
248248
249249 if (!propsReply.ok) {
250- console.log('Properties endpoint is offline.');
251250 return response.status(400);
252251 }
253252
@@ -258,7 +257,7 @@ router.post('/props', jsonParser, async function (request, response) {
258257 props['chat_template'] = props['chat_template'].slice(0, -1) + '\n';
259258 }
260259 props['chat_template_hash'] = createHash('sha256').update(props['chat_template']).digest('hex');
261260 console.log(`We haveModel propsproperties: ${JSON.stringify(props)}`);
262261 return response.send(props);
263262 } catch (error) {
264263 console.error(error);