Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot make gptstudio work with any API #215

Closed
3 tasks done
ManuelSpinola opened this issue Jun 12, 2024 · 6 comments
Closed
3 tasks done

I cannot make gptstudio work with any API #215

ManuelSpinola opened this issue Jun 12, 2024 · 6 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@ManuelSpinola
Copy link

Confirm setup

  • I have installed the development version of {gptstudio} (pak::pak("MichelNivard/gptstudio")) and tested if the problem remains.
  • I have installed the {reprex} and {sessioninfo} packages to be able to run this issue's code snippet pak::pak(c("reprex", "sessioninfo")).

What happened?

Sorry for this basic question, but I cannot make gpstudio work with any API. For example, Ollama:

ℹ Fetching models for ollama service...
✔ Got models!

I write a prompt:

make a plot with ggplot2

Nothing happens, no response at all.

Relevant log output

ℹ Fetching models for ollama service...
✔ Got models!

Session info

r
gptstudio::gptstudio_sitrep()
#> 
#> ── Configuration for gptstudio ─────────────────────────────────────────────────
#> No user configuration file found at
#> '/Users/manuelspinola/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
#> ✔ 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
#> ✔ Ollama is running
#> 
#> ── 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-06-12 with reprex v2.1.0

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.4.0 (2024-04-24)
#>  os       macOS Sonoma 14.5
#>  system   aarch64, darwin20
#>  ui       X11
#>  language (EN)
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       America/Costa_Rica
#>  date     2024-06-12
#>  pandoc   3.1.11 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/aarch64/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version    date (UTC) lib source
#>  assertthat    0.2.1      2019-03-21 [1] CRAN (R 4.4.0)
#>  cli           3.6.2      2023-12-11 [1] CRAN (R 4.4.0)
#>  curl          5.2.1      2024-03-01 [1] CRAN (R 4.4.0)
#>  digest        0.6.35     2024-03-11 [1] CRAN (R 4.4.0)
#>  evaluate      0.23       2023-11-01 [1] CRAN (R 4.4.0)
#>  fastmap       1.2.0      2024-05-15 [1] CRAN (R 4.4.0)
#>  fs            1.6.4      2024-04-25 [1] CRAN (R 4.4.0)
#>  glue          1.7.0      2024-01-09 [1] CRAN (R 4.4.0)
#>  gptstudio     0.4.0.9000 2024-06-12 [1] Github (MichelNivard/gptstudio@1f32da7)
#>  htmltools     0.5.8.1    2024-04-04 [1] CRAN (R 4.4.0)
#>  htmlwidgets   1.6.4      2023-12-06 [1] CRAN (R 4.4.0)
#>  httpuv        1.6.15     2024-03-26 [1] CRAN (R 4.4.0)
#>  httr2         1.0.1      2024-04-01 [1] CRAN (R 4.4.0)
#>  jsonlite      1.8.8      2023-12-04 [1] CRAN (R 4.4.0)
#>  knitr         1.46       2024-04-06 [1] CRAN (R 4.4.0)
#>  later         1.3.2      2023-12-06 [1] CRAN (R 4.4.0)
#>  lifecycle     1.0.4      2023-11-07 [1] CRAN (R 4.4.0)
#>  magrittr      2.0.3      2022-03-30 [1] CRAN (R 4.4.0)
#>  mime          0.12       2021-09-28 [1] CRAN (R 4.4.0)
#>  promises      1.3.0      2024-04-05 [1] CRAN (R 4.4.0)
#>  R6            2.5.1      2021-08-19 [1] CRAN (R 4.4.0)
#>  rappdirs      0.3.3      2021-01-31 [1] CRAN (R 4.4.0)
#>  Rcpp          1.0.12     2024-01-09 [1] CRAN (R 4.4.0)
#>  reprex        2.1.0      2024-01-11 [1] CRAN (R 4.4.0)
#>  rlang         1.1.3      2024-01-10 [1] CRAN (R 4.4.0)
#>  rmarkdown     2.27       2024-05-17 [1] CRAN (R 4.4.0)
#>  rstudioapi    0.16.0     2024-03-24 [1] CRAN (R 4.4.0)
#>  sessioninfo   1.2.2      2021-12-06 [1] CRAN (R 4.4.0)
#>  shiny         1.8.1.1    2024-04-02 [1] CRAN (R 4.4.0)
#>  withr         3.0.0      2024-01-16 [1] CRAN (R 4.4.0)
#>  xfun          0.44       2024-05-15 [1] CRAN (R 4.4.0)
#>  xtable        1.8-4      2019-04-21 [1] CRAN (R 4.4.0)
#>  yaml          2.3.8      2023-12-11 [1] CRAN (R 4.4.0)
#> 
#>  [1] /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────
```

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ManuelSpinola ManuelSpinola added the bug an unexpected problem or unintended behavior label Jun 12, 2024
@JamesHWade
Copy link
Collaborator

JamesHWade commented Jun 29, 2024

When running local models with Ollama, it can sometimes take a long time for the model to be ready to be used. What model were you trying to use? Maybe try a smaller one like phi-3.

@ManuelSpinola
Copy link
Author

ManuelSpinola commented Jun 29, 2024 via email

@calderonsamuel
Copy link
Collaborator

What happens if you use openai? Do you get a response?

Related to ollama: have you pulled any model? Do you get responses when using ollama directly in the terminal?

@ManuelSpinola
Copy link
Author

ManuelSpinola commented Jul 1, 2024 via email

@ManuelSpinola
Copy link
Author

ManuelSpinola commented Jul 3, 2024 via email

@calderonsamuel
Copy link
Collaborator

I'm sorry we weren't able to provide better help for this. This was hard to reproduce.

I'm glad it is working for you now. Feel free to close the issue if you think you reached a solution, otherwise please provide further details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants