Skip to content

ValidationError: logprobs Field required when using Runner.run_stream() #1269

@abdulhadi240

Description

@abdulhadi240

I am trying to run Runner with stream , I copied the code from the repo as well but the issue persist
Below is the Error and Screenshot

Error :

ValidationError                           Traceback (most recent call last)
[/tmp/ipython-input-7-3404052160.py](https://localhost:8080/#) in <cell line: 0>()
     17 
     18 
---> 19 asyncio.run(main())

11 frames
[/usr/local/lib/python3.11/dist-packages/pydantic/main.py](https://localhost:8080/#) in __init__(self, **data)
    251         # `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks
    252         __tracebackhide__ = True
--> 253         validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
    254         if self is not validated_self:
    255             warnings.warn(

ValidationError: 1 validation error for ResponseTextDeltaEvent
logprobs
  Field required [type=missing, input_value={'content_index': 0, 'del...', 'sequence_number': 3}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/missing
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions