-
Notifications
You must be signed in to change notification settings - Fork 287
Add ASP.NET Core example and update README #499
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for your contribution, @claudiogodoy99, and your interest in improving the OpenAI developer experience. We'll take a look and see if we can get this merged in! |
@scottaddie, @achandmsft: Would appreciate your thoughts on sample content and docs organization. |
Co-authored-by: Jesse Squire <[email protected]>
Co-authored-by: Jesse Squire <[email protected]>
hey @jsquire, thanks for reviewing, I've made some commits addressing the comments. |
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.
Thanks, @claudiogodoy99! A couple of minor nits, and I think we're good to merge.
<<<<<<< HEAD | ||
"Model": "gpt-4.1-mini", | ||
======= | ||
"Model": "gpt-4.1", | ||
>>>>>>> 2ef2c53 (chore: remove api secret and unused records) |
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.
<<<<<<< HEAD | |
"Model": "gpt-4.1-mini", | |
======= | |
"Model": "gpt-4.1", | |
>>>>>>> 2ef2c53 (chore: remove api secret and unused records) | |
"Model": "gpt-4.1-mini", |
Looks like some conflict markers got left in. I believe the latest change was to move to mini
.
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="OpenAI" Version="2.1.0" /> |
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.
<PackageReference Include="OpenAI" Version="2.1.0" /> | |
<PackageReference Include="OpenAI" Version="2.2.0" /> |
Hi team,
This PR adds a concrete example showing how to properly register and use the OpenAIClient with dependency injection in an ASP.NET Core application. It also includes a short highlighted section in the main README.md under the heading "How to use dependency injection".
PR for issue #498