Skip to content

sample code with OCISessionAuth raises issue #6

@streamnsight

Description

@streamnsight

when runnign the sample code with OciSessionAuth() I get:

Traceback (most recent call last):
  File "/Users/epleroy/workspace/code/me/playground/test_langchain_oci_openai/langchain_oci_openai.py", line 21, in <module>
    http_client=httpx.Client(auth=OciSessionAuth()),
                                  ~~~~~~~~~~~~~~^^
  File "/Users/epleroy/workspace/code/me/playground/test_langchain_oci_openai/.venv/lib/python3.13/site-packages/oci_openai/oci_openai.py", line 175, in __init__
    token = self._load_token(config)
  File "/Users/epleroy/workspace/code/me/playground/test_langchain_oci_openai/.venv/lib/python3.13/site-packages/oci_openai/oci_openai.py", line 180, in _load_token
    token_file = config["security_token_file"]

providing profile name etc... doesn't help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions