Open agiardina opened 1 month ago
Thank you for reporting, we will need the full output of reprex::reprex(gptstudio::gptstudio_sitrep(), session_info = TRUE)
. Running it should automatically copy the output to your clipboard
gptstudio::gptstudio_sitrep()
#>
#> ── Configuration for gptstudio ─────────────────────────────────────────────────
#> No user configuration file found at
#> '/home/agiardina/.config/R/gptstudio/config.yml'. Using default configuration.
#> Change configuration settings in the chat app. Lauch the chat app with addins
#> or `gptstudio_chat()`.
#>
#> ── Current Settings ──
#>
#> - Model: gpt-4o
#> - Task: coding
#> - Language: en
#> - Service: openai
#> - Custom prompt:
#> - Stream: TRUE
#> - Code style: no preference
#> - Skill: beginner
#>
#> ── Checking API connections ──
#>
#> ── Checking OpenAI API connection
#> ✔ Successfully connected to the OpenAI API service.
#>
#> ── Checking HuggingFace API connection
#> ✖ API key is not set or invalid for HuggingFace service.
#>
#> ── Checking Anthropic API connection
#> ✖ API key is not set or invalid for Anthropic service.
#>
#> ── Checking Google AI Studio API connection
#> ✖ API key is not set or invalid for Google AI Studio service.
#>
#> ── Checking Azure OpenAI API connection
#> ✖ API key is not set or invalid for Azure OpenAI service.
#>
#> ── Checking Perplexity API connection
#> ✖ API key is not set or invalid for Perplexity service.
#>
#> ── Checking Cohere API connection
#> ✖ API key is not set or invalid for Cohere service.
#>
#> ── Check Ollama for Local API connection
#> ✖ Couldn't connect to Ollama in <http://localhost:11434>. Is it running there?
#>
#> ── Getting help ──
#>
#> See the gptstudio homepage (<https://michelnivard.github.io/gptstudio/>) for
#> getting started guides and package documentation. File an issue or contribute
#> to the package at the GitHub repo
#> (<https://github.com/MichelNivard/gptstudio>).
#> ── End of gptstudio configuration ──────────────────────────────────────────────
Created on 2024-09-28 with reprex v2.1.1
This is a hard one! I suspect this is the same as #79 or #179 . Please take a look at those issues and tell us which one is more similar 🙏 . We love linux but it has given us some headaches 🥲
It seems to be the same error as #179. I was able to show the chat using rstudioapi::viewer from the console.
Confirm setup
{gptstudio}
(pak::pak("MichelNivard/gptstudio")
) and tested if the problem remains.{reprex}
and{sessioninfo}
packages to be able to run this issue's code snippetpak::pak(c("reprex", "sessioninfo"))
.What happened?
When I try to run the chat adding I get the following error in the console:
Error in
req_perform()
: ! Failed to perform HTTP request. Caused by error incurl::curl_fetch_memory()
: ! Failed to connect to 127.0.0.1 port 7636 after 0 ms: Connection refusedThe rlang::last_trace() gives this output:
Backtrace: ▆
The gptstudio::gptstudio_sitrep() command returns:
── Current Settings ──
── Checking API connections ──
── Checking OpenAI API connection ✔ Successfully connected to the OpenAI API service.
── Checking HuggingFace API connection ✖ API key is not set or invalid for HuggingFace service.
── Checking Anthropic API connection ✖ API key is not set or invalid for Anthropic service.
── Checking Google AI Studio API connection ✖ API key is not set or invalid for Google AI Studio service.
── Checking Azure OpenAI API connection ✖ API key is not set or invalid for Azure OpenAI service.
── Checking Perplexity API connection ✖ API key is not set or invalid for Perplexity service.
── Checking Cohere API connection ✖ API key is not set or invalid for Cohere service.
── Check Ollama for Local API connection ✖ Couldn't connect to Ollama in http://localhost:11434. Is it running there?
Thank you.
Relevant log output
No response
Session info
No response
Code of Conduct