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
update(openai): Support "oaieval" and "oaievalset" as executables within the "openai" shell plugin #208
Conversation
Hey Arun, thank you for your contribution! I am wondering, what similarity does this plugin bear with the Would it make sense to add another executable to the same plugin, or perhaps at least reuse the credential definition? |
Hi @hculea, great question! OpenAI Evals is a different project from OpenAI's Also, OpenAI CLI's executable is |
Thanks for clarifying! 😄 Is the credential definition the same between the two, though? I see that both use an envvar provisioner with edit: just to clarify, the rest looks good to me. This comment only aims to reduce some code duplication. |
I haven't compared the credential composition so far, but the main blocker is that we cannot configure a Shell Plugin with two executables. I've started a conversation here: Will mark this PR as a draft until that's a possibility. |
@hculea Following the same guidance as in Flyctl PR, Please let me know how things look now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, it worked for me!
This PR introduces a Shell Plugin for OpenAI's new Evals framework that was announced as part of the GPT-4 language model.
This is a fairly straightforward shell plugin as the Evals CLI expects a
OPENAI_API_KEY
environment variable with the OpenAI API Key which can be obtained on the OpenAI API Keys page. There's no CLI flag that accepts the API Key, nor a configuration file.There's a way to set the API Key within an individual Evals module code though, using
openai.api_key
or a path to the configuration file usingopenai.api_key_path
but neither are applicable to Shell Plugins because that's within the context of the Evals module code:Here's how to test
Making evals
section.make evals/build
op plugin init oaieval
(API Key can be obtained from this page)oaieval
will use the API Key stored on 1Password.oaieval gpt-3.5-turbo test-match
and ensure it runs successfully.Blockers
oaieval
CLI command but alsooaievalset
to test eval sets.