Update index.mdx

This commit is contained in:
Timothy Jaeryang Baek 2024-12-28 16:31:57 -08:00
parent 385d38b6ce
commit 4a9b995851

View File

@ -110,7 +110,7 @@ Weve updated the **function signatures** to better fit the new architecture.
#### Function Signature Changes:
| **Old** | **New** |
|-----------------------------------------|-----------------------------------------|
| `openai.generate_chat_completion(form_data: dict)` | `chat_completion(request: Request, form_data: dict)` |
| `openai.generate_chat_completion(form_data: dict, user: UserModel)` | `chat_completion(request: Request, form_data: dict, user: UserModel)` |
#### Example: