Repository navigation
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. |
accraw
left a comment
There was a problem hiding this comment.
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_KEYenvironment 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_keyor a path to the configuration file usingopenai.api_key_pathbut neither are applicable to Shell Plugins because that's within the context of the Evals module code:Here's how to test
Making evalssection.make evals/buildop plugin init oaieval(API Key can be obtained from this page)oaievalwill use the API Key stored on 1Password.oaieval gpt-3.5-turbo test-matchand ensure it runs successfully.Blockers
oaievalCLI command but alsooaievalsetto test eval sets.