Skip to content

About case invalid input in the spec/language/openai/embedding_spec.rb in GenAI::Language::OpenAI#embed test #10

@BlazingRockStorm

Description

@BlazingRockStorm

When I run rspec test for the project, I saw this on the console.

Screenshot 2024-10-11 at 12 51 38

Although this is a passed test case, I accidently mistaked it with a failed test case. Is there anyway not to display the red message

OpenAI HTTP Error (spotted in ruby-openai 6.3.1): {"error"=>{"message"=>"Please submit an `input`.", "type"=>"invalid_request_error", "param"=>nil, "code"=>nil}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions