autogen icon indicating copy to clipboard operation
autogen copied to clipboard

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

Open Mai0313 opened this issue 10 months ago • 3 comments

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 avatar Apr 08 '24 07:04 Mai0313

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.

Mai0313 avatar Apr 08 '24 07:04 Mai0313

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

afourney avatar Apr 18 '24 14:04 afourney

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

Mai0313 avatar Apr 22 '24 08:04 Mai0313