-
Notifications
You must be signed in to change notification settings - Fork 831
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
feat: Enable GPT-4 in OpenAIPrompt #2248
Conversation
@microsoft-github-policy-service agree company="Microsoft" |
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPrompt.scala
Outdated
Show resolved
Hide resolved
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPrompt.scala
Outdated
Show resolved
Hide resolved
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPrompt.scala
Outdated
Show resolved
Hide resolved
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPrompt.scala
Outdated
Show resolved
Hide resolved
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPrompt.scala
Outdated
Show resolved
Hide resolved
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPrompt.scala
Outdated
Show resolved
Hide resolved
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPrompt.scala
Outdated
Show resolved
Hide resolved
cognitive/src/test/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPromptSuite.scala
Show resolved
Hide resolved
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.
Amazing first PR of this! Just a few minor things!
…es/openai/OpenAIPrompt.scala Update default system prompt Co-authored-by: Mark Hamilton <[email protected]>
…es/openai/OpenAIPrompt.scala remove unneeded comment Co-authored-by: Mark Hamilton <[email protected]>
…es/openai/OpenAIPrompt.scala remove unneeded comment Co-authored-by: Mark Hamilton <[email protected]>
/azp run |
Commenter does not have sufficient privileges for PR 2248 in repo microsoft/SynapseML |
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPrompt.scala
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2248 +/- ##
==========================================
- Coverage 86.05% 82.25% -3.80%
==========================================
Files 327 327
Lines 16742 16773 +31
Branches 1509 1511 +2
==========================================
- Hits 14407 13797 -610
- Misses 2335 2976 +641 ☔ View full report in Codecov by Sentry. |
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/openai/OpenAIPrompt.scala
Outdated
Show resolved
Hide resolved
/azp run |
Commenter does not have sufficient privileges for PR 2248 in repo microsoft/SynapseML |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Related Issues/PRs
None.
What changes are proposed in this pull request?
Enabling use of GPT-4 in OpenAIPrompt by using OpenAIChatCompletions within it. This change switches to OpenAIChatCompletion if using gpt-4, and uses OpenAICompletion for all other models.
How is this patch tested?
The currently existing tests for OpenAIPrompt in OpenAIPromptSuite were duplicated to ensure that they also worked for gpt-4.
Does this PR change any dependencies?
Does this PR add a new feature? If so, have you added samples on website?
website/docs/documentation
folder.Make sure you choose the correct class
estimators/transformers
and namespace.DocTable
points to correct API link.yarn run start
to make sure the website renders correctly.<!--pytest-codeblocks:cont-->
before each python code blocks to enable auto-tests for python samples.WebsiteSamplesTests
job pass in the pipeline.