You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,13 +55,17 @@ This example is based on the <a href="../java-helloworld-with-local-dev-and-oci-
55
55
56
56
To do the OCI SDK authentication and authorization to use the GenAI services the function uses two options:
57
57
<ul>
58
-
<li>IAM regular <b>user auth</b> for the local dev and test on mac</li>
59
-
<li><b>InstancePrincipal</b> auth for the OCI Function by passing config key <code>AUTH_INSTANCE_PRINCIPAL</code> with any value (then not being null)</li>
58
+
<li><b>IAM regular user</b> for the local dev and test on mac</li>
59
+
<li><b>InstancePrincipal</b> for the OCI Function by passing config key <code>AUTH_INSTANCE_PRINCIPAL</code> with any value (then not being null)</li>
60
60
</ul>
61
61
62
62
<p>
63
63
IAM user option will work on both cases above, as local and as OCI Function.
64
64
65
+
## Build and test
66
+
67
+
During following the steps of the <ahref="../java-helloworld-with-local-dev-and-oci-functions">Hello function example </a> adjust the <ahref="https://github.com/oracle-devrel/technology-engineering/blob/main/app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/files/src/main/java/com/example/HelloAIFunction.java#L93">line 93</a> to match your <code>GenAI service OCID</code>.
68
+
65
69
<p>
66
70
67
71
Testing with curl (or copy-pasting the API Gateway deployment url to a browser):
0 commit comments