CharlieFRuan commited on
Commit
f3810d4
1 Parent(s): 13c9c91

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -1
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=[{"role": "user", "content": "What is the meaning of life?"}],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  ):