Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surfacing Invoke-OpenAIAPIRequest, extending Get-OpenAIAPIEndpoint #25

Open
potatoqualitee opened this issue Jun 22, 2024 · 2 comments
Open

Comments

@potatoqualitee
Copy link
Contributor

Right now, I have to dot source all of your internal files to get access to Invoke-OpenAIAPIRequest as I need to make calls that your module does not currently support.

https://github.com/potatoqualitee/finetuna/blob/main/finetuna.psm1#L8

Of course that also means that I had to add extra endpoints to Get-OpenAIAPIEndpoint so would there be a way to extend that by an end-user?

Alternatively, we could add every endpoint based on OpenAPI Schema.

@mkht
Copy link
Owner

mkht commented Jun 22, 2024

At least at this time users can't register arbitrary endpoints; I suppose we could add Invoke-OpenAIAPIRequest or a new function that thinly wraps it and expose it, but how valuable would it be?

It would be a bit difficult to dynamically load OpenAI's OpenAPI schema. It is often broken.

@potatoqualitee
Copy link
Contributor Author

ive appreciated being able to execute new features before they are released or supported officially in other modules and expose that functionality for my own users when it makes sense. in this case, i had to do big workarounds.

Perhaps there could be an $EndpointArgumentList hashtable param that can help bypass the Get-OpenAIAPIEndpoint requirement? that sounds powershelly

I wondered about the schema being broken! They update it a lot but I haven't found it very reliable. Thanks for the confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants