From ed55c829afda8a56f683d54b9a266dfc69b9f37c Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Thu, 27 Feb 2025 00:20:32 +0100 Subject: [PATCH] doc: Add Mistral AI and Google AI --- README.md | 55 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 7b79d2c..0283686 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,11 @@ 2. [Install plugin to QtCreator](#install-plugin-to-qtcreator) 3. [Configure for Anthropic Claude](#configure-for-anthropic-claude) 4. [Configure for OpenAI](#configure-for-openai) -5. [Configure for using Ollama](#configure-for-using-ollama) +4. [Configure for Mistral AI](#configure-for-mistral-ai) +4. [Configure for Google AI](#configure-for-google-ai) +5. [Configure for Ollama](#configure-for-ollama) 6. [System Prompt Configuration](#system-prompt-configuration) 7. [File Context Features](#file-context-features) -8. [Template-Model Compatibility](#template-model-compatibility) 9. [QtCreator Version Compatibility](#qtcreator-version-compatibility) 10. [Development Progress](#development-progress) 11. [Hotkeys](#hotkeys) @@ -53,7 +54,9 @@ - OpenAI - Anthropic Claude - LM Studio - - OpenAI-compatible providers(eg. https://openrouter.ai) + - Mistral AI + - Google AI + - OpenAI-compatible providers(eg. llama.cpp, https://openrouter.ai) - Extensive library of model-specific templates - Custom template support - Easy configuration and model selection @@ -120,7 +123,33 @@ OpenAI Settings -## Configure for using Ollama +## Configure for Mistral AI +1. Open Qt Creator settings and navigate to the QodeAssist section +2. Go to Provider Settings tab and configure Mistral AI api key +3. Return to General tab and configure: + - Set "Mistral AI" as the provider for code completion or/and chat assistant + - Set the OpenAI URL (https://api.mistral.ai) + - Select your preferred model (e.g., mistral-large-latest) + - Choose the Mistral AI template for code completion or/and chat +
+ Example of Mistral AI settings: (click to expand) + Mistral AI Settings +
+ +## Configure for Google AI +1. Open Qt Creator settings and navigate to the QodeAssist section +2. Go to Provider Settings tab and configure Google AI api key +3. Return to General tab and configure: + - Set "Google AI" as the provider for code completion or/and chat assistant + - Set the OpenAI URL (https://generativelanguage.googleapis.com/v1beta) + - Select your preferred model (e.g., gemini-2.0-flash) + - Choose the Google AI template +
+ Example of Google AI settings: (click to expand) + Google AI Settings +
+ +## Configure for Ollama 1. Install [Ollama](https://ollama.com). Make sure to review the system requirements before installation. 2. Install a language models in Ollama via terminal. For example, you can run: @@ -190,25 +219,9 @@ Linked files provide persistent context throughout the conversation: - Supports automatic syncing with open editor files (can be enabled in settings) - Files can be added/removed at any time during the conversation -## Template-Model Compatibility - -| Template | Compatible Models | Purpose | -|----------|------------------|----------| -| CodeLlama FIM | `codellama:code` | Code completion | -| DeepSeekCoder FIM | `deepseek-coder-v2`, `deepseek-v2.5` | Code completion | -| Ollama Auto FIM | `Any Ollama base/fim models` | Code completion | -| Qwen FIM | `Qwen 2.5 models(exclude instruct)` | Code completion | -| StarCoder2 FIM | `starcoder2 base model` | Code completion | -| Alpaca | `starcoder2:instruct` | Chat assistance | -| Basic Chat| `Messages without tokens` | Chat assistance | -| ChatML | `Qwen 2.5 models(exclude base models)` | Chat assistance | -| Llama2 | `llama2 model family`, `codellama:instruct` | Chat assistance | -| Llama3 | `llama3 model family` | Chat assistance | -| Ollama Auto Chat | `Any Ollama chat/instruct models` | Chat assistance | - ## QtCreator Version Compatibility -- QtCreator 15.0.1 - 0.4.8 - 0.4.x +- QtCreator 15.0.1 - 0.4.8 - 0.5.x - QtCreator 15.0.0 - 0.4.0 - 0.4.7 - QtCreator 14.0.2 - 0.2.3 - 0.3.x - QtCreator 14.0.1 - 0.2.2 plugin version and below