You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue regarding the LLM being used. I've switched to the Llama model using Openrouter, but while it's coding in the background, it's still looking for Openai. This occurred while it was trying to install something related to npm. Here is the traceback error.
Anyone else experience this problem?
There was a problem with request to openai API:
[{'type': 'save_file', 'save_file': {'path': './utils/scraper.js', 'code_change_description': ''}}, {'type': 'command', 'command': {'command': 'npm install axios cheerio', 'timeout': 30000, 'success_message': ''}}, {'type': 'save_file', 'save_file': {'path': './routes/authRoutes.js', 'code_change_description': ''}}, {'type': 'command', 'command': {'command': 'node./scraper.js', 'timeout': 30000, 'success_message': ''}}] is not of type 'object'
**Traceback (most recent call last):
File "c:\Users********\gpt-pilot\pilot\utils\llm_connection.py", line 219, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "c:\Users**********\gpt-pilot\pilot\utils\llm_connection.py", line 502, in stream_gpt_completion
raise ValueError(f'Error in LLM response: {json_line["error"]["message"]}')
ValueError: Error in LLM response: upstream connect error or disconnect/reset before headers. reset reason: connection failure
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\Users********\gpt-pilot\pilot\utils\llm_connection.py", line 151, in create_gpt_chat_completion
response = stream_gpt_completion(gpt_data, req_type, project, model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users************\gpt-pilot\pilot\utils\llm_connection.py", line 301, in wrapper
raise ApiError(f"Error making LLM API request: {err_str}") from e
helpers.exceptions.ApiError: Error making LLM API request: Error in LLM response: upstream connect error or disconnect/reset before headers. reset reason: connection failure
The request to OPENROUTER API failed with error: Error making LLM API request: Error in LLM response: upstream connect error or disconnect/reset before headers. reset reason: connection failure. Please try again later.**
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having an issue regarding the LLM being used. I've switched to the Llama model using Openrouter, but while it's coding in the background, it's still looking for Openai. This occurred while it was trying to install something related to npm. Here is the traceback error.
Anyone else experience this problem?
There was a problem with request to openai API:
[{'type': 'save_file', 'save_file': {'path': './utils/scraper.js', 'code_change_description': ''}}, {'type': 'command', 'command': {'command': 'npm install axios cheerio', 'timeout': 30000, 'success_message': ''}}, {'type': 'save_file', 'save_file': {'path': './routes/authRoutes.js', 'code_change_description': ''}}, {'type': 'command', 'command': {'command': 'node./scraper.js', 'timeout': 30000, 'success_message': ''}}] is not of type 'object'
**Traceback (most recent call last):
File "c:\Users********\gpt-pilot\pilot\utils\llm_connection.py", line 219, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "c:\Users**********\gpt-pilot\pilot\utils\llm_connection.py", line 502, in stream_gpt_completion
raise ValueError(f'Error in LLM response: {json_line["error"]["message"]}')
ValueError: Error in LLM response: upstream connect error or disconnect/reset before headers. reset reason: connection failure
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\Users********\gpt-pilot\pilot\utils\llm_connection.py", line 151, in create_gpt_chat_completion
response = stream_gpt_completion(gpt_data, req_type, project, model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users************\gpt-pilot\pilot\utils\llm_connection.py", line 301, in wrapper
raise ApiError(f"Error making LLM API request: {err_str}") from e
helpers.exceptions.ApiError: Error making LLM API request: Error in LLM response: upstream connect error or disconnect/reset before headers. reset reason: connection failure
The request to OPENROUTER API failed with error: Error making LLM API request: Error in LLM response: upstream connect error or disconnect/reset before headers. reset reason: connection failure. Please try again later.**
Beta Was this translation helpful? Give feedback.
All reactions