Skip to content

[Feature] Adding support for oci-genai-auth-python.#1

Merged
shenoyvvarun merged 4 commits intomainfrom
init
Mar 20, 2026
Merged

[Feature] Adding support for oci-genai-auth-python.#1
shenoyvvarun merged 4 commits intomainfrom
init

Conversation

@shenoyvvarun
Copy link
Copy Markdown
Contributor

Description

  • Initial feature drop for oci-genai-auth-python, adding core library code under src/oci_genai_auth/ and extensive examples for OpenAI, Anthropic, and Google clients.
  • Added project scaffolding/configuration: README, licensing, GitHub workflows, tests, Makefile, and packaging metadata.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Ran all the examples.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@shenoyvvarun shenoyvvarun requested a review from upfixer March 11, 2026 20:25
Signed-off-by: Varun Shenoy <varun.vinayak.shenoy@oracle.com>
Copy link
Copy Markdown
Contributor

@OpheliaLjh OpheliaLjh left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Left a few inline comments covering some potential bugs, config inconsistencies, and minor cleanup items. Nothing blocking, happy to discuss any of them.

Copy link
Copy Markdown
Contributor

@OpheliaLjh OpheliaLjh left a comment

Choose a reason for hiding this comment

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

Thank you for the changes!

Copy link
Copy Markdown
Contributor

@OpheliaLjh OpheliaLjh left a comment

Choose a reason for hiding this comment

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

Thanks for providing the fixes and addressing the comments, I left some some small comments

Copy link
Copy Markdown
Contributor

@OpheliaLjh OpheliaLjh left a comment

Choose a reason for hiding this comment

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

LGTM, left some nit comments

@shenoyvvarun shenoyvvarun merged commit 6a81197 into main Mar 20, 2026
4 checks passed
from oci_genai_auth import OciSessionAuth

client = OpenAI(
base_url="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/v1",
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.

Let's use "https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/20231130/actions/v1" here.

"https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/v1" should not even exist for partner api and let's not promote it further in docs


## Running the Examples

1. Update `examples/agenthub/openai/common.py` and/or `examples/partner/openai/common.py` with your `COMPARTMENT_ID`, `PROJECT_OCID`, and set the correct `REGION`.
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.

Create respective README.md in examples/agenthub/README.md and examples/partner/openai/README.md


## Using AgentHub APIs (non-passthrough)

AgentHub runs in non-pass-through mode and provides a unified interface for interacting with models and agentic capabilities.
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.

I can provide an updated verison here

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.

3 participants