Skip to content

Commit 397b333

Browse files
committed
Update README.md
1 parent bbb441b commit 397b333

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

README.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,29 @@ Follow the links below to generate a config file and a key pair in your ~/.oci d
3232

3333
After completion, you should have the following 2 things in your `~/.oci directory `
3434

35-
a. A config file(where key file point to private key:key_file=`~/.oci/oci_api_key.pem`)
36-
b. A key pair named `oci_api_key.pem` and `oci_api_key_public.pem`
37-
Now make sure you change the reference of the key file in the config file (where the key file points to private key:key_file=/YOUR_DIR_TO_KEY_FILE/oci_api_key.pem)
38-
35+
- A config file(where key file point to private key:key_file=`~/.oci/oci_api_key.pem`)
36+
- A key pair named `oci_api_key.pem` and `oci_api_key_public.pem`
37+
- Now make sure you change the reference of the key file in the config file
3938
- Append OCI Generative-AI service compartment and endpoint URL
4039

4140
```console
4241
vim service/python/server.py
4342
```
4443

45-
```Python
46-
#TODO: Update this section with your tenancy details
47-
compartment_id = "ocid1.compartment.oc1.."
48-
CONFIG_PROFILE = "DEFAULT"
49-
config = oci.config.from_file("~/.oci/config", CONFIG_PROFILE)
50-
endpoint = "https://inference.generativeai.<REGION>.oci.oraclecloud.com"
51-
generative_ai_inference_client = (
52-
oci.generative_ai_inference.GenerativeAiInferenceClient(
53-
config=config,
54-
service_endpoint=endpoint,
55-
retry_strategy=oci.retry.NoneRetryStrategy(),
56-
timeout=(10, 240),
57-
)
44+
```Python
45+
#TODO: Update this section with your tenancy details
46+
compartment_id = "ocid1.compartment.oc1.."
47+
CONFIG_PROFILE = "DEFAULT"
48+
config = oci.config.from_file("~/.oci/config", CONFIG_PROFILE)
49+
endpoint = "https://inference.generativeai.<REGION>.oci.oraclecloud.com"
50+
generative_ai_inference_client = (
51+
oci.generative_ai_inference.GenerativeAiInferenceClient(
52+
config=config,
53+
service_endpoint=endpoint,
54+
retry_strategy=oci.retry.NoneRetryStrategy(),
55+
timeout=(10, 240),
5856
)
57+
)
5958
```
6059

6160
### 1. (Optional) Modify websocket ports
@@ -66,9 +65,9 @@ vim service/python/server.py
6665
vim app/web/components/content/index.tsx
6766
```
6867

69-
```js
70-
const gateway = ws://${window.location.hostname}:1234;
71-
```
68+
```react
69+
const gateway = ws://${window.location.hostname}:1234;
70+
```
7271

7372
- Update default port in Python websocket server:
7473

0 commit comments

Comments
 (0)