84486d88 by Bryan Batac

- fixed the opensource api

1 parent 2904457f
Showing 1 changed file with 1 additions and 1 deletions
...@@ -295,7 +295,7 @@ async function runOpensource(req, res) { ...@@ -295,7 +295,7 @@ async function runOpensource(req, res) {
295 try { 295 try {
296 let error_msg = ""; 296 let error_msg = "";
297 const endpoint_api_url = process.env.OPENSOURCE_ENDPOINTS; 297 const endpoint_api_url = process.env.OPENSOURCE_ENDPOINTS;
298 const api_key = OPENSOURCE_API_KEY; 298 const api_key = process.env.OPENSOURCE_API_KEY;
299 const response = await axios.post(endpoint_api_url, { 299 const response = await axios.post(endpoint_api_url, {
300 model: currentModel, 300 model: currentModel,
301 messages: JSON.parse(message), 301 messages: JSON.parse(message),
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!