Skip to content

The addition of auth callbacks with OpenAPI plugins seems promising but I am confused on how to use it #5773

Closed Answered by moonbox3
ColtonBehannon asked this question in Q&A
Discussion options

You must be logged in to vote

@ColtonBehannon, have you seen this kernel example that shows an example of setting up the auth callback? It doesn't need to be as complex as this one, but you can tailor the callback to grab your API key from wherever you need to load it.

https://github.com/microsoft/semantic-kernel/blob/9b8a218f5b6df9dcc72d69d989aff9b904cdecf0/python/samples/kernel-syntax-examples/openai_plugin_azure_key_vault.py#L154C13-L154C71

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@ColtonBehannon
Comment options

Answer selected by sophialagerkranspandey
Comment options

You must be logged in to vote
1 reply
@ColtonBehannon
Comment options

Comment options

You must be logged in to vote
1 reply
@ColtonBehannon
Comment options

Comment options

You must be logged in to vote
1 reply
@moonbox3
Comment options

moonbox3 Apr 9, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants