- fixed the opensource api
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), | ... | ... |
-
Please register or sign in to post a comment