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

Implement openAI endpoint invoker for nuget #15797

Merged
merged 25 commits into from
May 12, 2023

Conversation

RandySheriffH
Copy link
Contributor

Implement openAI audio endpoint, and enable nuget packaging.

@RandySheriffH RandySheriffH requested a review from a team as a code owner May 3, 2023 21:13
Copy link
Contributor

@pranavsharma pranavsharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use RAII and make_unique (instead of malloc and free).

@RandySheriffH
Copy link
Contributor Author

Please use RAII and make_unique (instead of malloc and free).

RAll-ed two types:

  • Response buffer
  • Curl handles

@RandySheriffH RandySheriffH changed the title Implement openAi endpoint in nuget Implement openAI endpoint invoker for nuget May 4, 2023
onnxruntime/core/framework/cloud_invoker.cc Outdated Show resolved Hide resolved
onnxruntime/core/framework/cloud_invoker.cc Outdated Show resolved Hide resolved
onnxruntime/core/framework/cloud_invoker.cc Outdated Show resolved Hide resolved
@snnn
Copy link
Member

snnn commented May 4, 2023

Run https://github.com/microsoft/onnxruntime/blob/main/cgmanifests/generate_cgmanifest.py.

Add the license of libcurl to https://github.com/microsoft/onnxruntime/blob/main/ThirdPartyNotices.txt since your public packages contains code from libcurl. Do this thing for all new dependencies this EP introduces, whether the dependency is a direct dependency or indirect dependency.

Copy link
Contributor

@pranavsharma pranavsharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

onnxruntime/core/framework/cloud_invoker.cc Show resolved Hide resolved
@RandySheriffH RandySheriffH requested a review from a team as a code owner May 5, 2023 00:31
pranavsharma
pranavsharma previously approved these changes May 5, 2023
@RandySheriffH
Copy link
Contributor Author

RandySheriffH commented May 11, 2023

Why cloud invoker has a function local static OrtDevice ?

static const OrtDevice cpu_device;

Why it needs be kept as a function local static?

Mind point to the code line of this?

@snnn
Copy link
Member

snnn commented May 11, 2023

Why cloud invoker has a function local static OrtDevice ?

static const OrtDevice cpu_device;

Why it needs be kept as a function local static?

Mind point to the code line of this?

Give me a moment. I'm searching it.

Copy link
Contributor

@pranavsharma pranavsharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

pranavsharma
pranavsharma previously approved these changes May 11, 2023
@RandySheriffH RandySheriffH merged commit 7c4e826 into main May 12, 2023
@RandySheriffH RandySheriffH deleted the rashuai/AzureEP_1_15_nuget branch May 12, 2023 05:04
fs-eire pushed a commit that referenced this pull request May 12, 2023
Implement openAI audio endpoint, and enable nuget packaging.

---------

Co-authored-by: Randy Shuai <[email protected]>
prathikr pushed a commit that referenced this pull request May 16, 2023
Implement openAI audio endpoint, and enable nuget packaging.

---------

Co-authored-by: Randy Shuai <[email protected]>
snnn added a commit that referenced this pull request May 18, 2023
### Description
Revert a change in #15797: restore the correct version of emsdk


### Motivation and Context
Without change, when you build it on Windows you will see:
```
2023-05-17 19:41:30,093 build [INFO] - Activating emsdk...
2023-05-17 19:41:30,093 util.run [INFO] - Running subprocess in 'C:\src\onnxruntime2\cmake\external\emsdk'
  'C:\src\onnxruntime2\cmake\external\emsdk\emsdk.bat' activate 3.1.37
error: tool or SDK not found: '3.1.37'
```
snnn added a commit that referenced this pull request May 18, 2023
…15997)

### Description
In PR #15797, the author manually edited the
cgmanifests/generated/cgmanifest.json file and made an error that makes the file ill formed.

### Motivation and Context
@snnn snnn removed the release:1.15 label May 18, 2023
snnn added a commit that referenced this pull request May 19, 2023
### Description
In PR #15797, the author
manually edited the cgmanifests/generated/cgmanifest.json file and made
an error there that makes the file ill formed.
preetha-intel pushed a commit to intel/onnxruntime that referenced this pull request Jun 7, 2023
### Description
In PR microsoft#15797, the author
manually edited the cgmanifests/generated/cgmanifest.json file and made
an error there that makes the file ill formed.
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.

5 participants