-
Notifications
You must be signed in to change notification settings - Fork 543
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
Support multiple deployments per cognitive service #3448
Conversation
@JoshLove-msft is that something that could be made public, or in the opposite not used? By that I mean this PR uses private reflection to access |
Yeah this can be made public. |
|
Should the AOAI demo in the playground folder be expanded to have multiple model deployments so there's an implementation |
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.
This is good. Just need the updated version of CDK so we don't need to use reflection.
@joperezr I wonder whether it would help to retrain the labeler bot |
although these things on the hosting side that are specific to a component, I'm not sure what to label |
src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIExtensions.cs
Outdated
Show resolved
Hide resolved
// to ensure they are not created in parallel. This is equivalent to @batchSize(1) | ||
// which can't be defined with the CDK |
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.
This is equivalent to @batchsize(1)
// which can't be defined with the CDK
When will this be available? That seems like the better long-term fix.
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.
We are waiting for this to merge and a build to be produced:
https://github.com/Azure/azure-sdk-for-net/pull/43285/files
@JoshLove-msft and @tg-msft can talk to timelines.
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.
Will be shipping today
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.
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, reacting ASAP
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.
When will this be available? That seems like the better long-term fix.
I think the question was not about the AddDependency
being made public, but the support for @batchSize(1)
.
869494a
to
8dbce9b
Compare
Updated with public method and tried it with one and two deployments successfully. |
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.
LGTM
/backport to release/8.0 |
Started backporting to release/8.0: https://github.com/dotnet/aspire/actions/runs/8885059518 |
@eerhardt backporting to release/8.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Support multiple deployments per cognitive service
Applying: Use local method
Applying: Use public method
Using index info to reconstruct a base tree...
M Directory.Packages.props
Falling back to patching base and 3-way merge...
Auto-merging Directory.Packages.props
CONFLICT (content): Merge conflict in Directory.Packages.props
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0003 Use public method
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@eerhardt an error occurred while backporting to release/8.0, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
Co-authored-by: Sébastien Ros <[email protected]>
Fixes #3409
Microsoft Reviewers: Open in CodeFlow