Skip to content

ChatOptions.AdditionalProperties not post to http body #7448

@oudi

Description

@oudi

Description

               var chatoptions = new ChatOptions()
                {
                    AdditionalProperties = new AdditionalPropertiesDictionary
                    {
                        // extra_body={"chat_template_kwargs": {"enable_thinking": false}}
                        ["chat_template_kwargs"] = new Dictionary<string, object>
                        {
                            ["enable_thinking"] = false
                        }
                    }
                };
                var message = new Microsoft.Extensions.AI.ChatMessage(ChatRole.User, input);
                messages.Add(message);
                await foreach (var item in _chatClient.GetStreamingResponseAsync(messages, chatoptions))

in the http body from fidder, the AdditionalProperties not send to api. I tried GetResponseAsync is the same.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-aiMicrosoft.Extensions.AI librariesbugThis issue describes a behavior which is not expected - a bug.untriaged

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions