Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docs/add-new-model.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: 🆕 Add New Model
description: Learn how to update the PearAI `config.json` file to add models like Ollama and OpenRouter.
keywords: [pearai, add model, ollama, openrouter, config.json]
---

Aside from the built-in models with PearAI, you can follow these steps to add your own models/api keys.

---

1. Open the add model section in PearAI.

![Add Model](../static/img/add-model.png)

2. Select "Other"

![Select Other](../static/img/select-other.png)

3. Then choose whichever model you'd like to add.

![Select Ollama](../static/img/select-ollama.png)

4. Follow the on-screen instructions to complete the setup

Note:
- Add the added models' configuration can be found in the PearAI `config.json` file (`CMD/CTRL+SHIFT+P` > `Open config.json`).
- For Azure OpenAI, the "engine" field is your deployment name.
3 changes: 2 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docsSidebar: [
"index",
"index",
"quickstart",
"demos",
"at-commands",
"add-new-model",
"important-shortcuts",
"tab-autocomplete",
"models-and-usage",
Expand Down
Binary file added static/img/add-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/select-ollama.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/select-openrouter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/select-other.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4262,11 +4262,6 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==

fsevents@~2.3.2:
version "2.3.3"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz"
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==

function-bind@^1.1.2:
version "1.1.2"
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
Expand Down