Update README.md
Browse files
README.md
CHANGED
@@ -141,30 +141,15 @@ openai_response = {
|
|
141 |
|
142 |
|
143 |
'''
|
144 |
-
Output OpenAI compatible
|
145 |
-
{
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
"name": "get_current_weather",
|
153 |
-
"arguments": {
|
154 |
-
"location": "Boston, MA"
|
155 |
-
}
|
156 |
-
},
|
157 |
-
{
|
158 |
-
"name": "get_current_weather",
|
159 |
-
"arguments": {
|
160 |
-
"location": "San Francisco, CA"
|
161 |
-
}
|
162 |
-
}
|
163 |
-
]
|
164 |
-
},
|
165 |
-
"finish_reason": "stop"
|
166 |
}
|
167 |
-
|
168 |
'''
|
169 |
```
|
170 |
|
|
|
141 |
|
142 |
|
143 |
'''
|
144 |
+
Output OpenAI compatible Dictionary
|
145 |
+
{'index': 0,
|
146 |
+
'message': {
|
147 |
+
'role': 'assistant',
|
148 |
+
'content': 'create_product(product_name="AIR",size="L",price="100")',
|
149 |
+
'function_call': [{'name': 'create_product', 'arguments': {'product_name': 'AIR', 'size': 'L', 'price': 100}}]
|
150 |
+
},
|
151 |
+
'finish_reason': 'stop'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
}
|
|
|
153 |
'''
|
154 |
```
|
155 |
|