Skip to content

Commit

Permalink
Updated R version to 4.3.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
MMenchero committed Dec 7, 2023
1 parent d4db953 commit 1463d58
Show file tree
Hide file tree
Showing 9 changed files with 1,460 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/timegpt_forecast.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ timegpt_forecast <- function(df, h=8, freq=NULL, id_col=NULL, time_col="ds", tar
"authorization" = paste("Bearer", .get_token())
) |>
httr2::req_user_agent("nixtlar") |>
httr2::req_body_json(data = timegpt_data, digits=10) |>
httr2::req_body_json(data = timegpt_data) |>
httr2::req_perform()

# Extract forecast ----
Expand Down
2 changes: 1 addition & 1 deletion man/nixtlaR-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions tests/testthat/dashboard.nixtla.io/api/timegpt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"data": {
"timestamp": [
"2016-01-14 00:00:00",
"2016-01-15 00:00:00",
"2016-01-16 00:00:00",
"2016-01-17 00:00:00",
"2016-01-18 00:00:00",
"2016-01-19 00:00:00",
"2016-01-20 00:00:00"
],
"value": [
7.960582256317139,
7.7414960861206055,
7.728490352630615,
8.267574310302734,
8.543140411376953,
8.298713684082031,
8.105557441711426
],
"input_tokens": 43,
"output_tokens": 7,
"finetune_tokens": 0
},
"message": "success",
"details": "request successful",
"code": "B10",
"requestID": "4J7ERJE3A6",
"support": "If you have questions or need support, please email [email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,6 @@
"message": "success",
"details": "request successful",
"code": "B10",
"requestID": "HV44H5PFMV",
"requestID": "RS9XWFA7E6",
"support": "If you have questions or need support, please email [email protected]"
}
Loading

0 comments on commit 1463d58

Please sign in to comment.