Closed Seviks closed 6 months ago
Hi, @Seviks , what does simply using chattr()
or maybe chattr_test()
returns?
See below for the two returns. Apparently I misunderstood the pricing plan - it seems the API does not work with free trial. Since the problem does not concern the tool, I am closing this issue - maybe you want to check if a specific error message is appropriate.
> chattr()
── chattr - Available models
Select the number of the model you would like to use:
1: OpenAI - Chat Completions - gpt-3.5-turbo (gpt35)
2: OpenAI - Chat Completions - gpt-4 (gpt4)
Selection: 1
── chattr
• Provider: OpenAI - Chat Completions
• Path/URL: https://api.openai.com/v1/chat/completions
• Model: gpt-3.5-turbo
• Label: GPT 3.5 (OpenAI)
Error in `ide_build_prompt()`:
! No 'prompt' provided, and no prompt cannot be infered from the current document
Run `rlang::last_trace()` to see where the error occurred.
> chattr_test()
! {error}Type:insufficient_quota
Message: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
Error in `abort()`:
! `message` must be a character vector, not a <httr2_response> object.
Run `rlang::last_trace()` to see where the error occurred.
When submit a text or a question, there is no anwer and an error is raised (see below).
R version: 4.3.3 packages are up to date Installed with
remotes::install_github("mlverse/chattr")
per 23th of April.Example:
chattr:::chattr_app()