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

chore: Add HasOpenAICognitiveServiceInput to OpenAIPrompt #2259

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

sss04
Copy link
Contributor

@sss04 sss04 commented Aug 6, 2024

Related Issues/PRs

#xxx

What changes are proposed in this pull request?

Custom headers are supported in both OpenAIChatCompletion and OpenAICompletion - but not in OpenAIPrompt. Passing functionality through to enable the same in OpenAIPrompt

How is this patch tested?

  • I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

  • No. You can skip this section.
  • Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

  • No. You can skip this section.
  • Yes. Make sure you have added samples following below steps.
  1. Find the corresponding markdown file for your new feature in website/docs/documentation folder.
    Make sure you choose the correct class estimators/transformers and namespace.
  2. Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
  3. Make sure the DocTable points to correct API link.
  4. Navigate to website folder, and run yarn run start to make sure the website renders correctly.
  5. Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
  6. Make sure the WebsiteSamplesTests job pass in the pipeline.

@sss04
Copy link
Contributor Author

sss04 commented Aug 6, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sss04 sss04 enabled auto-merge (squash) August 6, 2024 16:15
@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 84.47%. Comparing base (12d8113) to head (9082656).

Files Patch % Lines
...zure/synapse/ml/services/openai/OpenAIPrompt.scala 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2259      +/-   ##
==========================================
+ Coverage   84.45%   84.47%   +0.01%     
==========================================
  Files         327      327              
  Lines       16773    16775       +2     
  Branches     1511     1499      -12     
==========================================
+ Hits        14166    14171       +5     
+ Misses       2607     2604       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sss04 sss04 changed the title chore: Enable custom headers in OpenAIPrompt chore: Add HasOpenAICognitiveServiceInput to OpenAIPrompt Aug 6, 2024
@mhamilton723
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mhamilton723 mhamilton723 merged commit 7c23d83 into microsoft:master Aug 7, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

3 participants