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
#> $messages#> $messages[[1]]#> $messages[[1]]$role#> [1] "system"#> #> $messages[[1]]$content#> As a chat bot assisting an R programmer working in the RStudio IDE it is important to tailor responses to their skill level and preferred coding style. They consider themselves to be a beginner R programmer. Provide answers with their skill level in mind. #> #> #> $messages[[2]]#> $messages[[2]]$role#> [1] "user"#> #> $messages[[2]]$content#> [1] "hello"#> Error in `query_api_azure_openai()`:#> ✖ Azure OpenAI API request failed. Error 400 - Bad Request#> ℹ Visit the Azure OpenAi Error code guidance#> (<https://help.openai.com/en/articles/6891839-api-error-code-guidance>) for#> more details#> ℹ You can also visit the API documentation#> (<https://platform.openai.com/docs/guides/error-codes/api-errors>)
Session info
gptstudio::gptstudio_sitrep()
#> #> ── Configuration for gptstudio ─────────────────────────────────────────────────#> No user configuration file found at#> '/Users/sinval/Library/Preferences/org.R-project.R/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-4-turbo-preview#> - Task: coding#> - Language: en#> - Service: openai#> - Custom prompt:#> - Stream: TRUE#> - Code style: no preference#> - Skill: beginner#> #> ── Checking API connections ──#> #> ── Checking OpenAI API connection#> ✖ API key is not set or invalid for OpenAI 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#> ✖ Failed to connect to the Azure OpenAI API 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 ──────────────────────────────────────────────
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
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?
I am looking to integrate the OpenAI GPT-4 model into my application. Here are the details I have:
https://xxxxxxxxxxxxxxx.openai.azure.com/
yyyyyyyyyyyyyyyyyyyyyyyy
gpt-4o
gpt-4o
2024-02-01
I edited the
.Renviron
file accordingly:I want to integrate it with
gptstudio
. Could someone guide me on authenticating and making API requests to this endpoint?I tried:
Relevant log output
Session info
Code of Conduct
The text was updated successfully, but these errors were encountered: