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

Error in strsplit of k #15

Open
Qamosse opened this issue Nov 18, 2024 · 0 comments
Open

Error in strsplit of k #15

Qamosse opened this issue Nov 18, 2024 · 0 comments

Comments

@Qamosse
Copy link

Qamosse commented Nov 18, 2024

Hello,

Since today, when trying the exact same code that worked as intended last Friday, i have the following error:

 res <- gptcelltype(all.markers,                     
                    tissuename = "mouse brain",
                    model = "gpt-4o",
                    )

[1] "Note: OpenAI API key found: returning the cell type annotations."
Error in strsplit(k$choices[, "message.content"], "\n") : 
  non-character argument

When I tried to print "k" to check what was the input of the "strsplit" this was the output:

[1] "Note: OpenAI API key found: returning the cell type annotations."
$id
[1] "chatcmpl-AUrzbBhtlFrKsL5IpuK4V7WuG5rcN"

$object
[1] "chat.completion"

$created
[1] 1731920751

$model
[1] "gpt-4o-2024-08-06"

$choices
  index logprobs finish_reason message.role message.content message.refusal
1     0       NA          stop    assistant              NA              NA

$usage
$usage$prompt_tokens
[1] 108

$usage$completion_tokens
[1] 1

$usage$total_tokens
[1] 109

$usage$prompt_tokens_details
$usage$prompt_tokens_details$cached_tokens
[1] 0

$usage$prompt_tokens_details$audio_tokens
[1] 0


$usage$completion_tokens_details
$usage$completion_tokens_details$reasoning_tokens
[1] 0

$usage$completion_tokens_details$audio_tokens
[1] 0

$usage$completion_tokens_details$accepted_prediction_tokens
[1] 0

$usage$completion_tokens_details$rejected_prediction_tokens
[1] 0



$system_fingerprint
[1] "fp_45cf54deae"

Error in strsplit(k$choices[, "message.content"], "\n") : 
  non-character argument
Called from: strsplit(k$choices[, "message.content"], "\n")

This is the content of "k":

Capture d’écran 2024-11-18 à 10 19 18

Does it happen to anybody else?

Thank you,

Quentin

@Qamosse Qamosse changed the title Error in strsplit Error in strsplit of k Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant