Skip to content

Large model streaming does not return the content_filter_results field #960

Open
@NieRonghua

Description

@NieRonghua

Your issue may already be reported!
Please search on the issue tracker before creating one.

Describe the bug
Large model flow returns in the following figure, without content_filter_results information:

Image

But my streaming response is to include the content_filter_results field:

Image

To Reproduce
I have implemented a web-server using gin

Image Image

Expected behavior
If the large model does not return content_filter_results, the web service does not return content_filter_results

Screenshots/Logs
If applicable, add screenshots to help explain your problem. For non-graphical issues, please provide any relevant logs or stack traces.

Environment (please complete the following information):

  • go-openai version: v1.38.0
  • Go version: 1.20
  • OpenAI API version: [e.g. v1]
  • OS: [e.g. Ubuntu 20.04]

Additional context
Add any other context about the problem here.

I am not a senior golang development engineer, I think the type of ContentFilterResults field to a pointer can solve this problem

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions