# Multi AI Models switch

Q-Remix now features the ability to **switch between multiple AI models** for enhanced flexibility and control over your smart contract development. This feature allows you to choose from various powerful AI models, each offering different strengths, to tailor your code generation experience.

### Supported AI Models

Currently, the following AI models are supported for switching:

* **LLaMA 3 - 8B**
* **LLaMA 3 - 70B**
* **Mistral 8x7B**
* **Gemma 7B**

Each model varies in terms of speed, quality, and computational requirements. Select the one that best fits your needs for generating code, depending on the complexity and size of your prompt.

<figure><img src="/files/u65yFr2uh6fB3d0Z7QzL" alt=""><figcaption></figcaption></figure>

### How to Use the AI Model Dropdown

#### 1. **Access the AI Model Dropdown**

The **AI model dropdown menu** is located **above the code editor interface**, allowing you to easily select from the available AI models.

#### 2. **Switch Between Models**

Click on the dropdown menu and choose the model you’d like to use for code generation. Each model is designed to handle different code complexity levels and use cases, ensuring the most accurate and efficient code output based on your needs.

### How It Works

Once you select the desired AI model from the dropdown, it will remain active for subsequent code generation prompts. The AI will use this model to interpret and generate code based on your request.

<figure><img src="/files/DOuqSKzwGp6B8IT3DOsj" alt=""><figcaption></figcaption></figure>

### Component Design for Multi-AI Models

This feature has been implemented as a **separate component** that exclusively handles the switching of multiple AI models. This ensures a modular approach where:

* The user can easily **select and switch** between AI models for each code generation session.
* The component is designed to provide an **intuitive user experience** with a simple, accessible dropdown menu for seamless integration into the Q-Remix interface.

### Key Benefits

* **Flexibility**: Choose from a variety of AI models, each optimized for different types of code generation.
* **Control**: Select the AI model best suited for the complexity and style of your smart contract code generation.
* **Seamless Integration**: The AI model switching is integrated directly into the **code editor interface**, allowing for quick changes without disrupting your workflow.

This **multiple AI model switching feature** allows you to get the best results for your code generation needs by tailoring the AI's behavior to your specific requirements.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.qremix.org/solidity-modules/multi-ai-models-switch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
