Oracle GenAI Integration #28091
Replies: 2 comments 1 reply
-
@federicoquaranta40 you need to authenticate to use the OCI cliente, follow this steps |
Beta Was this translation helpful? Give feedback.
1 reply
-
solved with the setting of the path as an environment variable |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm facing some issues in reproducing this code snippet:
`from langchain_community.llms.oci_generative_ai import OCIGenAI
llm = OCIGenAI(
model_id="cohere.command",
service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com",
compartment_id="MY_OCID",
model_kwargs={"temperature": 0, "max_tokens": 500},
)
response = llm.invoke("Tell me one fact about earth", temperature=0.7)
print(response)`
It returns me the following error:
But i have that file in my directory
Thanks,
Federico
Beta Was this translation helpful? Give feedback.
All reactions