Skip to content

Commit

Permalink
Added Mistral Models
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaki-1052 committed Feb 4, 2024
1 parent 0a27497 commit 9d18dc6
Show file tree
Hide file tree
Showing 513 changed files with 21,324 additions and 11,891 deletions.
7 changes: 4 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
OPENAI_API_KEY=your_api_key_here
USER_USERNAME=Username
USER_PASSWORD=Password
API_KEY=your_google_ai_key_here
PORT=3000
GOOGLE_API_KEY=your_google_ai_key_here
MISTRAL_KEY=your_mistral_ai_key_here
# Remember to either rename this file to `.env`
# or create a new `.env` file with these variables.
# An OpenAI Key is required for GPT; if unchanged,
# you can sign in with "Username" and "Password".
# The port will default to 3000 for `http://localhost:3000/portal`.
# Feel free to change the port if it's busy!
# The Google API Key is only required if using Gemini.
# The Gemini models will simply fail to respond if left blank.
# The Gemini models will simply fail to respond if left blank.
# The same applies for the Mistral API.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ChatBot Portal for Multi-Modal GPT-4 API

Welcome to my **Chat-Bot Portal**, a full-featured *Node.js*-based web application that allows users to interact with a chatbot powered by *OpenAI*'s **GPT-4 API**, including the latest *Vision*, *Hearing*, and *Speaking* capabilities with *image-generation* and superior *Model Performance*. Now includes the **Google Gemini** models via *free* API!
Welcome to my **Chat-Bot Portal**, a full-featured *Node.js*-based web application that allows users to interact with a chatbot powered by *OpenAI*'s **GPT-4 API**, including the latest *Vision*, *Hearing*, and *Speaking* capabilities with *image-generation* and superior *Model Performance*. Now includes the **Google Gemini** models via *free* API along with **Mistral AI**!

## Table of Contents

Expand Down Expand Up @@ -53,6 +53,10 @@ Welcome to my **Chat-Bot Portal**, a full-featured *Node.js*-based web applicati
- **Gemini-Pro**: Latest Google Model – GPT-3.5 Equivalent
- **Free** Until February 2024!
- **Gemini-Vision**: Multi-Modal Model – One-Time Use
- **Mistral**: *Tiny-Medium*
- Three *New* **Mistral AI** Models
- *Intelligence* **Varies** by *Size*
- A Description can be found under

## Examples

Expand Down Expand Up @@ -320,6 +324,29 @@ Lastly, if you have uploaded an image and are working with the Vision model, you
- This means that you do *not* need to set up any *billing* and can use this *Model API* immediately.
- **Gemini-Ultra** will be added to this Portal when released, but will require payment to *Google*.

#### 9. [*OPTIONAL*] **Mistral AI Setup**

##### [**API Creation Link**](https://console.mistral.ai/user/api-keys/)

##### [**Subscription Dashboard**](https://console.mistral.ai/billing/subscribe/)

- Click on the links provided above to navigate to the *Mistral AI* **API Key** *generation* and *subscription* pages.
- Once again, the link to the API page is [**here**](https://makersuite.google.com/app/apikey).
- And you can subscribe for mandatory *payment* [**here**](https://console.mistral.ai/billing/subscribe/)
- The APIs are *paid*; pricing can be found [**here**](https://docs.mistral.ai/platform/pricing/).

###### Mistral Pricing Table

| MODEL | PRICE FOR INPUT | PRICE FOR OUTPUT |
|---------------|-------------------------|-------------------------|
| Mistral-Tiny | ¢0.02 / 1K tokens | ¢0.05 / 1K tokens |
| Mistral-Small | ¢0.06 / 1K tokens | ¢0.19 / 1K tokens |
| Mistral-Medium| ¢0.27 / 1K tokens | ¢0.81 / 1K tokens |

- The [Mistral **Documentation**](https://docs.mistral.ai/redocusaurus/plugin-redoc-0.yaml) for **Chat Completions** is linked [**here**](https://docs.mistral.ai/api/#operation/createChatCompletion) as well.
- Please follow the same steps for inserting your **API Key** into the `.env` file.
- See the above instructions, applied to "`your_mistral_ai_key_here`".

## Relevant [Links](https://arc.net/folder/B777A318-2A95-4C36-86AA-156166895CC2)

- [Pricing](https://openai.com/pricing) - OpenAI's pricing details for different API Models.
Expand Down Expand Up @@ -508,6 +535,9 @@ This **Updates** Section will showcase any further features added to the reposit
- Follow instructions in the ReadMe to retrieve your Key from their *AI Studio*.
- Link to Makersuite Key Generation Page is [**HERE**](https://makersuite.google.com/app/apikey).
- More detailed installation instructions are [**HERE**](#8-optional-google-gemini-setup).
- **Update #4**: The **Mistral AI** models have been added to the *model selector*.
- Similarly to *Google Gemini*, you will need to follow the instructions to setup your **API Key** and **billing**.
- **Installation** *Instructions* and *Further* **Information** can be found [**HERE**](#9-optional-mistral-ai-setup).

#### *Showcase* of **DALL·E 3**

Expand Down Expand Up @@ -612,6 +642,7 @@ Now, let's say for the second request, you include the initial request and respo
- [ ] Function Calling
- [x] Update ReadMe for Release
- [x] Add Demo Video
- [x] Added Mistral APIs
### Quick-Start Guide
Expand Down
148 changes: 85 additions & 63 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9d18dc6

Please sign in to comment.