Skip to content

feat(azure): add Azure OpenAI integration#126

Open
shivv23 wants to merge 1 commit intoc2siorg:mainfrom
shivv23:feat/azure-openai-v2
Open

feat(azure): add Azure OpenAI integration#126
shivv23 wants to merge 1 commit intoc2siorg:mainfrom
shivv23:feat/azure-openai-v2

Conversation

@shivv23
Copy link
Copy Markdown

@shivv23 shivv23 commented Mar 24, 2026

Summary

Add Azure OpenAI LLM provider integration to RustCloud for unified generative AI support.

Changes

  • Add AzureOpenAI struct implementing LlmProvider trait
  • Supports Azure OpenAI (ChatGPT GPT-4/GPT-3.5) and text-embedding-ada-002
  • Configurable endpoint, API key, and API version
  • Implements generate, stream, embed, generate_with_tools methods
  • Proper error handling for API and network errors

Validation

i

Copy link
Copy Markdown
Contributor

@Sandipmandal25 Sandipmandal25 left a comment

Choose a reason for hiding this comment

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

Same branching issue like all other prs chcek the detailed comment over in all older prs. Thank you

Comment thread rustcloud/src/main.rs
Comment on lines -1 to -97
#![allow(clippy::too_many_arguments, clippy::let_and_return, dead_code, unused, deprecated, non_camel_case_types, clippy::single_component_path_imports, clippy::needless_return, clippy::io_other_error, clippy::new_without_default, non_snake_case, clippy::assertions_on_constants)]

mod tests;
pub mod errors;
pub mod types {
pub mod llm;
}
pub mod traits {
pub mod llm_provider;
pub mod token_provider;
}
pub mod azure{
pub mod azure_apis{
pub mod auth{
pub mod azure_auth;
}
pub mod storage{
pub mod azure_blob;
}
}
}
pub mod aws {
pub mod aws_apis {
pub mod compute {
pub mod aws_ec2;
pub mod aws_ecs;
pub mod aws_eks;
}
pub mod database {
pub mod aws_dynamodb;
}
pub mod management {
pub mod aws_monitoring;
}
pub mod network {
pub mod aws_dns;
pub mod aws_loadbalancer;
}
pub mod security {
pub mod aws_iam;
pub mod aws_keymanagement;
}
pub mod storage {
pub mod aws_archival_storage;
pub mod aws_block_storage;
pub mod aws_storage_bucket;
}
}
}

pub mod gcp {
pub mod gcp_apis {
pub mod app_services {
pub mod gcp_notification_service;
}
pub mod artificial_intelligence {
pub mod gcp_automl;
pub mod vertex;
}
pub mod compute {
pub mod gcp_compute_engine;
pub mod gcp_kubernetes;
}
pub mod database {
pub mod gcp_bigtable;
pub mod gcp_bigquery;
}
pub mod network {
pub mod gcp_dns;
pub mod gcp_loadbalancer;
}
pub mod storage {
pub mod gcp_storage;
}
pub mod auth {
pub mod gcp_auth;
}
}
pub mod types;
}

pub mod digiocean {
pub mod digiocean_apis {
pub mod compute {
pub mod digiocean_droplet;
}
pub mod dns {
pub mod digiocean_dns;
}
pub mod network {
pub mod digiocean_loadbalancer;
}
pub mod storage {
pub mod digiocean_storage;
}
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The same file here again dont you think there is a problem in all prs because azure and bedrock pr and all other prs contain this same file everywhere which isnt needed? I hope you verify this from your side before making a new pull request.

- Add AzureOpenAI struct implementing LlmProvider trait
- Supports Azure OpenAI (ChatGPT) and text-embedding-ada-002
- Configurable endpoint, API key, and API version
- Implements generate, stream, embed, generate_with_tools
@shivv23 shivv23 force-pushed the feat/azure-openai-v2 branch from b5032b9 to 590157d Compare March 24, 2026 08:23
@shivv23
Copy link
Copy Markdown
Author

shivv23 commented Mar 24, 2026

I've verified the files in this PR. PR #126 only contains 3 files related to Azure OpenAI: azure_apis/ai/openai.rs, azure_apis/ai/mod.rs, and azure_apis/mod.rs. \n\nThese are different files from PR #125 which contains AWS Bedrock files. Both PRs are now based on the cleaned main branch after fixing PR #124 (which now only has 6 files for the crate layout change).

@Sandipmandal25
Copy link
Copy Markdown
Contributor

contains 3 files related to Azure OpenAI: azure_apis/ai/openai.rs, azure_apis/ai/mod.rs, and azure_apis/mod.rs. \n\nThese are different files fr

*now 3 files previouly it was 28 files. thanks!

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.

2 participants