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

[Bug]: Error in Validate_skeleton (Dev version) and Warning: Error in : API key is not valid when use ollama and Google Api #235

Closed
3 tasks done
alirezach opened this issue Nov 9, 2024 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@alirezach
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?

I'm trying to use gptstudio and fail and fail and fail again.
I have ollama and use this on vscode and positron without problem
also I have google API (I dont have and use OpenAI)

When load chat windows and set model on it, after submit show error
Screenshot 2024-11-09 141516
Screenshot 2024-11-09 142029

Relevant log output

Loading required package: shiny

Listening on http://127.0.0.1:5499
ℹ Fetching models for openai service...
✖ HTTP 401 Unauthorized.
• OAuth error
• realm: OpenAI API
✖ No models available
ℹ Fetching models for ollama service...
✔ Got models!
Warning: Error in : API key is not valid
  85: <Anonymous>
  78: gptstudio_skeleton_build
  76: observe
  75: <observer>
   4: shiny::runApp
   3: eval
   2: eval
   1: .rs.sourceWithProgress

Session info

Session info ──────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.4.1 (2024-06-14 ucrt)
 os       Windows 11 x64 (build 26100)
 system   x86_64, mingw32
 ui       RStudio
 language (EN)
 collate  English_United States.utf8
 ctype    English_United States.utf8
 tz       Asia/Tehran
 date     2024-11-09
 rstudio  2024.09.0+375 Cranberry Hibiscus (desktop)
 pandoc   NAPackages ──────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version     date (UTC) lib source
 askpass       1.2.0       2023-09-03 [1] CRAN (R 4.4.1)
 assertthat    0.2.1       2019-03-21 [1] CRAN (R 4.4.1)
 base64enc     0.1-3       2015-07-28 [1] CRAN (R 4.4.0)
 bslib         0.8.0       2024-07-29 [1] CRAN (R 4.4.1)
 cachem        1.1.0       2024-05-16 [1] CRAN (R 4.4.1)
 cli           3.6.3       2024-06-21 [1] CRAN (R 4.4.1)
 colorspace    2.1-1       2024-07-26 [1] CRAN (R 4.4.1)
 commonmark    1.9.1       2024-01-30 [1] CRAN (R 4.4.1)
 crayon        1.5.3       2024-06-20 [1] CRAN (R 4.4.1)
 curl          5.2.3       2024-09-20 [1] CRAN (R 4.4.1)
 digest        0.6.37      2024-08-19 [1] CRAN (R 4.4.1)
 evaluate      1.0.0       2024-09-17 [1] CRAN (R 4.4.1)
 fansi         1.0.6       2023-12-08 [1] CRAN (R 4.4.1)
 fastmap       1.2.0       2024-05-15 [1] CRAN (R 4.4.1)
 fontawesome   0.5.2       2023-08-19 [1] CRAN (R 4.4.1)
 fs            1.6.4       2024-04-25 [1] CRAN (R 4.4.1)
 glue          1.8.0       2024-09-30 [1] CRAN (R 4.4.1)
 gptstudio   * 0.4.0       2024-05-21 [1] CRAN (R 4.4.2)
 highr         0.11        2024-05-26 [1] CRAN (R 4.4.1)
 htmltools     0.5.8.1     2024-04-04 [1] CRAN (R 4.4.1)
 htmlwidgets   1.6.4       2023-12-06 [1] CRAN (R 4.4.1)
 httpuv        1.6.15      2024-03-26 [1] CRAN (R 4.4.1)
 httr          1.4.7       2023-08-15 [1] CRAN (R 4.4.1)
 httr2         1.0.5       2024-09-26 [1] CRAN (R 4.4.1)
 ids           1.0.1       2017-05-31 [1] CRAN (R 4.4.1)
 jquerylib     0.1.4       2021-04-26 [1] CRAN (R 4.4.1)
 jsonlite      1.8.9       2024-09-20 [1] CRAN (R 4.4.1)
 knitr         1.48        2024-07-07 [1] CRAN (R 4.4.1)
 later         1.3.2       2023-12-06 [1] CRAN (R 4.4.1)
 lifecycle     1.0.4       2023-11-07 [1] CRAN (R 4.4.1)
 magrittr      2.0.3       2022-03-30 [1] CRAN (R 4.4.1)
 memoise       2.0.1       2021-11-26 [1] CRAN (R 4.4.1)
 mime          0.12        2021-09-28 [1] CRAN (R 4.4.0)
 openssl       2.2.2       2024-09-20 [1] CRAN (R 4.4.1)
 pillar        1.9.0       2023-03-22 [1] CRAN (R 4.4.1)
 pkgconfig     2.0.3       2019-09-22 [1] CRAN (R 4.4.1)
 promises      1.3.0       2024-04-05 [1] CRAN (R 4.4.1)
 purrr         1.0.2       2023-08-10 [1] CRAN (R 4.4.1)
 R6            2.5.1       2021-08-19 [1] CRAN (R 4.4.1)
 rappdirs      0.3.3       2021-01-31 [1] CRAN (R 4.4.1)
 Rcpp          1.0.13      2024-07-17 [1] CRAN (R 4.4.1)
 rlang         1.1.4       2024-06-04 [1] CRAN (R 4.4.1)
 rmarkdown     2.28        2024-08-17 [1] CRAN (R 4.4.1)
 rstudioapi    0.17.1.9000 2024-11-09 [1] Github (rstudio/rstudioapi@68b315e)
 rvest         1.0.4       2024-02-12 [1] CRAN (R 4.4.1)
 sass          0.4.9       2024-03-15 [1] CRAN (R 4.4.1)
 selectr       0.4-2       2019-11-20 [1] CRAN (R 4.4.1)
 shiny         1.9.1       2024-08-01 [1] CRAN (R 4.4.1)
 shiny.i18n    0.3.0       2023-01-16 [1] CRAN (R 4.4.1)
 sourcetools   0.1.7-1     2023-02-01 [1] CRAN (R 4.4.1)
 SSEparser     0.1.0       2023-12-14 [1] CRAN (R 4.4.1)
 stringi       1.8.4       2024-05-06 [1] CRAN (R 4.4.0)
 stringr       1.5.1       2023-11-14 [1] CRAN (R 4.4.1)
 sys           3.4.2       2023-05-23 [1] CRAN (R 4.4.1)
 tibble        3.2.1       2023-03-20 [1] CRAN (R 4.4.1)
 tinytex       0.53        2024-09-15 [1] CRAN (R 4.4.1)
 utf8          1.2.4       2023-10-22 [1] CRAN (R 4.4.1)
 uuid          1.2-1       2024-07-29 [1] CRAN (R 4.4.1)
 vctrs         0.6.5       2023-12-01 [1] CRAN (R 4.4.1)
 waiter        0.2.5       2022-01-03 [1] CRAN (R 4.4.2)
 withr         3.0.2       2024-10-28 [1] CRAN (R 4.4.2)
 xfun          0.47        2024-08-17 [1] CRAN (R 4.4.1)
 xml2          1.3.6       2023-12-04 [1] CRAN (R 4.4.1)
 xtable        1.8-4       2019-04-21 [1] CRAN (R 4.4.1)
 yaml          2.3.10      2024-07-26 [1] CRAN (R 4.4.1)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@alirezach alirezach added the bug an unexpected problem or unintended behavior label Nov 9, 2024
@calderonsamuel
Copy link
Collaborator

Hi, thanks for reporting! This is duplicate, here is the solution: #230 (comment)

Sidenote: you have the dev version of {rstudioapi}, not {gptstudio}. This is why you don't have the tooltips that were meant to guide you to save after changing settings.

I'm closing this, but let us know if the problem persists.

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

2 participants