Skip to content

Commit bbb441b

Browse files
committed
Update README.md
1 parent 682a0d7 commit bbb441b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ Now make sure you change the reference of the key file in the config file (where
4242
vim service/python/server.py
4343
```
4444

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),
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+
)
5758
)
58-
)
5959
```
6060
6161
### 1. (Optional) Modify websocket ports
@@ -66,20 +66,20 @@ generative_ai_inference_client = (
6666
vim app/web/components/content/index.tsx
6767
```
6868

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

7373
- Update default port in Python websocket server:
7474

7575
```console
7676
vim service/python/server.py
7777
```
7878

79-
```Python
80-
async def start_server():
81-
await websockets.serve(handle_websocket, "localhost", 1234 )
82-
```
79+
```Python
80+
async def start_server():
81+
await websockets.serve(handle_websocket, "localhost", 1234 )
82+
```
8383

8484
### 2. Upload Public Key
8585

0 commit comments

Comments
 (0)