这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG]: "/api/v1/openai/chat/completion" is missing fields #2956

@nesretep-anp1

Description

@nesretep-anp1

How are you running AnythingLLM?

Docker (local)

What happened?

The results of the API endpoint "/api/v1/openai/chat/completion" do not contain the following fields:

.choices[i].index
.usage

This leads to some OpenAI API consumers having fail the evaluation of the responses.

Are there known steps to reproduce?

Simply use the mentioned endpoint with curl or something else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible bugBug was reported but is not confirmed or is unable to be replicated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions