Skip to content

Using Semantic Kernel to call OpenAI which is behind an API Management instance #7143

Open

Description

How can I use Semantic Kernel to call an OpenAI chat completion (gpt-4o, in my case) which is behind an API Management instance?

If such usage of Semantic Kernel is possible, I'd really like a code snippet to help with this specific use case (I've experienced with other use cases).
I found related issues (#2744 and #5763), but their included links don't work anymore.

To be honest, I'm not even sure what endpoint url and api key should I use.
For the time being, I tried the url (redacted) marked in the image, and the api key of the OpenAI service itself, but it doesn't work.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

  • Status

    Backlog: Planned

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions