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) {
try {
let error_msg = "";
const endpoint_api_url = process.env.OPENSOURCE_ENDPOINTS;
const api_key = OPENSOURCE_API_KEY;
const api_key = process.env.OPENSOURCE_API_KEY;
const response = await axios.post(endpoint_api_url, {
model: currentModel,
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!