Configure your first AI model
Set up a model provider, test a model, and use it for chat, writing, and your knowledge base.
This guide uses AIHubMix to configure your first chat model and verify a reply in NoteGen. You can also connect other OpenAI-compatible providers or local services such as Ollama and LM Studio.
Before you start
- Install and open NoteGen. The model service previews are based on desktop version
0.38.2. - Sign in to AIHubMix, then open the console to create and copy an API key.
- Open the model list on AIHubMix and copy a model ID. This guide uses
gpt-5.6-terraas its chat example; availability depends on the provider's current list and your account permissions.
AIHubMix is the provider, and gpt-5.6-terra is a model offered by that provider. Configure the connection first, add a model, then select it for the feature you want to use.
Configure the provider
Each step below has a focused NoteGen replica. Numbered markers point to the controls described beneath it. The platform list loads templates from NoteGen’s CDN configuration center. Keys, model settings, and connection tests are local demonstrations. Switch providers, add models, or change parameters; refreshing resets your changes. Do not enter a real API key in the preview.
1. Select the provider
- 1Select the marked platform row; the provider name opens the referral link.
Open settings from the top-right corner of the window. Under AI, open Model Services, then select AIHubMix, marked as a sponsor, in the provider list.
If AIHubMix is missing, check your network, close settings, and reopen them. You can also choose Add custom platform, name it AIHubMix, and enter the connection details below.
2. Enter connection details
- 1End the Base URL at /v1.
- 2Enter the provider's API key.
- 3Choose the proxy mode.
Open Connection settings and fill in:
| Field | Example value |
|---|---|
| Base URL | https://aihubmix.com/v1, preset for the included provider |
| API Key | The key you created in the AIHubMix console |
| Network proxy | Inherit global proxy; check that any configured proxy can reach the URL |
Changes save automatically. End the URL at /v1, without /chat/completions or /embeddings; NoteGen adds the endpoint for each model type. If the primary address is temporarily unavailable, the provider also offers https://api.inferera.com/v1.
3. Add a chat model
- 1Enter the model ID.
- 2Choose Chat.
- 3Test the model connection.
- 4Use Add model for additional models.
- Open Models and click Add model.
- In the expanded model card, open the model selector, search for
gpt-5.6-terra, and select it, or use another model ID copied from the provider's list. - Set the model type to Chat (
chat), the default for new models. - Leave output limits, context window, Temperature, and other advanced options at their defaults initially.
If the model is absent from the list, enter its full ID and choose Use "model ID". If a text field appears instead, paste the ID directly. The refresh button reloads the model list.
A Ready status means the required fields are filled in. You still need to test the connection.
4. Test the connection
- 1Click Test connection.
- 2Read the result; this is a simulated success.
Click Test connection on the model card. A successful AI connection test confirms that the current settings can call that model. Add and test additional models under the same provider as needed.
Use the model for chat and writing
1. Select a chat model
- 1Open the selector from the bottom status bar.
- 2Select your configured chat model.
Close settings and click the current model name on the right side of the bottom status bar. Select your chat model under AIHubMix.
2. Verify a reply
- 1Send a short message.
- 2Confirm the setup by reading the reply.
Send a short message in the right-hand chat panel, such as “Describe Markdown in one sentence.” A normal reply confirms the setup works in practice. If the panel is hidden, use the Show right sidebar button at the top right.
3. Use the model in the editor
Taking notes with Markdown
1Markdown lets us keep notes in plain text, using headings and lists to organize ideas.
Capture the original idea, then refine it into a clear note.
Generate canvas from selection
- 1Select text in the editor.
- 2Open AI in the floating toolbar.
- 3Choose Polish, Concise, or Expand.
Editor AI features follow the current main model unless you choose a separate editor model. Select text in a note, open AI in the floating toolbar, and choose a writing action such as polish, shorten, expand, or translate. To select a separate model, open Settings → Editor Settings → Default models → Editor model.
Configure RAG retrieval models (optional)
LLM Wiki uses your primary chat model by default to organize material. See Organize material with LLM Wiki.
RAG semantic search uses an embedding model to build a vector index of original material. You can add a reranker to improve result ordering.
1. Add an embedding model
- 1Enter the embedding model ID.
- 2Choose Embedding.
- 3Test the embedding model.
- 4Use Add model to add another model.
Add text-embedding-3-small under AIHubMix, set its type to Embedding (embedding), and test the connection.
2. Add a reranking model
- 1Enter the reranking model ID.
- 2Choose Rerank.
- 3Test the reranking model.
- 4Use Add model to add another model.
If needed, add a reranking model supported by the provider, such as qwen3-reranker-0.6b, set its type to Rerank (rerank), and test it.
3. Select retrieval models
Retrieval models
Embedding enables semantic search; reranking is optional. Local lexical retrieval works without a model.
1Embedding model
Converts text into vectors for semantic retrieval.
2Reranking model
Optional: improves relevance ordering.
- 1Select the embedding model in Knowledge Base.
- 2Select the optional reranker.
Open Settings → Knowledge base. If RAG semantic search appears, turn it on and select the embedding model you added. To select a reranker, expand RAG advanced settings, retrieval tests, and maintenance. In earlier clients, both model selectors are under Knowledge Base → Retrieval models.
After changing embedding models, recompute your knowledge-base vectors to avoid mixing vectors from different models. Continue with Build and use a knowledge base.
Troubleshooting
Connection test fails
Check the complete API key, Base URL, exact model ID, and model type first.
401/403: Check your key, account permissions, and the provider's error message.404: Check that the URL ends at/v1and that the model ID is correct.- Timeouts or network errors: Check the network and proxy. Try the fallback URL above if the primary address is unavailable.
- Unsupported
max_completion_tokens: Switch the token-limit parameter tomax_tokensin the advanced settings.
The model is missing from the model selector
Return to Settings → Model Services and confirm that the model has an ID and its type is Chat. Embedding and reranking models are selected in their respective feature settings.
Chat says no main model is configured
Click the model name in the bottom status bar and select a chat model under AIHubMix. Adding a provider and a model is followed by this selection step.
Other providers
For another OpenAI-compatible service, create a custom provider and use its URL, key, and model ID. Ollama commonly uses http://localhost:11434/v1, and LM Studio commonly uses http://localhost:1234/v1. Start the local service before connecting.
See Model configuration and Model selection and fallback for more details. For provider-side instructions, see AIHubMix's NoteGen guide.