microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
31.21k stars 4.56k forks source link

[Feature Request]: Web Surfer Agent should support custom base url and headers. #2320

Open Mai0313 opened 5 months ago

Mai0313 commented 5 months ago

Is your feature request related to a problem? Please describe.

I am a junior engineer at MediaTek. We have purchased the Azure OpenAI service from Microsoft and use our own base URL for both the model and Bing search. I believe the new Web Surfer feature should support this as well.

Describe the solution you'd like

I will open a PR for this.

Additional context

No response

Mai0313 commented 5 months ago

After digging into the source code, I believe that allowing the user to pass a base_url should be sufficient; the rest, such as headers, can be passed through request_kwargs.

afourney commented 5 months ago

Have a look at the PR #1929 and see if the MarkdownSearch class might provide the flexibility you need.

Mai0313 commented 5 months ago

Have a look at the PR #1929 and see if the MarkdownSearch class might provide the flexibility you need.

@afourney thanks, my branch has been merged #2321 I will check and leave a comment on PR #1929