> For the complete documentation index, see [llms.txt](https://red-3.gitbook.io/freegptfix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://red-3.gitbook.io/freegptfix/lib/room/connectmodel.md).

# ConnectModel

Since version 1.2.0, freeGPTFix introduces the role-connection feature for AI (currently available only for rooms).

Example:

```python
from freeGPTFix.lib.room import Room
from freeGPTFix.lib import roles

#gpt3_5 or gemini
with Room(model="gemini") as room:
	while True:
		text = input("> ")
		resp = room.send_message(text)
		print(resp["reply"])
```
