feat: add azure openai inference#38
Conversation
|
Note Reviews pausedUse the following commands to manage reviews:
WalkthroughBumps llama-stack to 0.2.22 across configs, adds a conditional Azure remote inference provider to build/run configurations and docs, and updates container dependencies by replacing openai with litellm. Pre-commit hook and build scripts align with the new version; no API signatures changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User
participant R as Runner (distribution/run.yaml)
participant PR as Provider Registry
participant AZ as Azure Provider (remote::azure)
participant Other as Other Inference Providers
rect rgba(200,220,255,0.25)
note over R,PR: Provider registration at startup
R->>PR: Register providers from config
alt env.AZURE_API_KEY is set
note right of PR: Conditionally include Azure
PR->>PR: Add provider_id "azure"
else env.AZURE_API_KEY is empty
PR->>PR: Skip Azure provider
end
end
U->>R: Submit inference request
R->>PR: Select provider (routing rules)
alt Azure selected
PR->>AZ: Forward request with api_key/base/version/type
AZ-->>PR: Response
else Other provider selected
PR->>Other: Forward request
Other-->>PR: Response
end
PR-->>R: Return response
R-->>U: Deliver result
note over R,A Z: New/changed: conditional Azure provider integration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai ignore |
✅ Actions performedReviews paused. |
|
needs #39 |
|
|
As expected since this branch does not run on 0.2.22, hence the wait for |
da6199a to
a282199
Compare
|
@nathan-weinberg @Elbehery ready! |
New inference provider. Relates to: RHAIENG-744 Signed-off-by: Sébastien Han <seb@redhat.com>
a282199 to
0cec0f3
Compare
feat: add azure openai inference
New inference provider.
Relates to: RHAIENG-744
Signed-off-by: Sébastien Han seb@redhat.com
@coderabbitai ignore