CharlieFRuan
commited on
Commit
•
18b053e
1
Parent(s):
cc0c0d5
Update README.md
Browse files
README.md
CHANGED
@@ -41,7 +41,21 @@ engine = MLCEngine(model)
|
|
41 |
|
42 |
# Run chat completion in OpenAI API.
|
43 |
for response in engine.chat.completions.create(
|
44 |
-
messages=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
model=model,
|
46 |
stream=True,
|
47 |
):
|
|
|
41 |
|
42 |
# Run chat completion in OpenAI API.
|
43 |
for response in engine.chat.completions.create(
|
44 |
+
messages = [
|
45 |
+
{
|
46 |
+
"role": "user",
|
47 |
+
"content": [
|
48 |
+
{
|
49 |
+
"type": "image_url",
|
50 |
+
"image_url": "https://www.ilankelman.org/stopsigns/australia.jpg",
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"type": "text",
|
54 |
+
"text": "Describe this image please."
|
55 |
+
},
|
56 |
+
],
|
57 |
+
},
|
58 |
+
],
|
59 |
model=model,
|
60 |
stream=True,
|
61 |
):
|