Skip to content

Commit 7761f3e

Browse files
Merge pull request #5 from FireHead90544/add-providers
build: v0.2.0 out
2 parents 052719d + da01b32 commit 7761f3e

File tree

5 files changed

+37
-15
lines changed

5 files changed

+37
-15
lines changed

README.md

+20-11
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@ An AI-based CLI assistant to help you with command line & shell.
33

44

55
## Demo
6-
Would be adding install instructions and better demo soon, until then check this out.
7-
### Setup
8-
![image](https://github.com/user-attachments/assets/87d3ba64-ecb7-43c6-9863-a62c39396ac5)
9-
10-
### Inferences
11-
![image](https://github.com/user-attachments/assets/7af58310-183a-429b-aa66-e6abe36713fb)
12-
![image](https://github.com/user-attachments/assets/20062ac2-1057-4139-9f60-990bd41605da)
6+
https://github.com/user-attachments/assets/effefe1a-c0ed-4b60-838c-98f992f6c25f
137

148

159
## Installation
@@ -80,8 +74,23 @@ $ how to [OPTIONS] TASK
8074

8175

8276
## Providers
83-
`how-cli` uses ChatModels as they support chat messages as opposed to TextModels and below model providers and their corresponding models are available to use.
77+
`how-cli` uses ChatModels as they support chat messages as opposed to TextModels and below model providers and their corresponding models are available to use. If you could test the models that are marked as ❌, please create an issue or pull request along with the test results.
78+
79+
| Provider | Model | Package | Tested |
80+
|:--------:|:-----:|:-------:|:------:|
81+
| GoogleGenAI | `gemini-1.5-flash` | `langchain-google-genai` ||
82+
| GoogleVertexAI | `gemini-1.5-flash` | `langchain-google-vertexai` ||
83+
| GroqMistralAI | `mixtral-8x7b-32768` | `langchain-groq` ||
84+
| GroqLLaMa | `llama3-70b-8192` | `langchain-groq` ||
85+
| OpenAI | `gpt-4o` | `langchain-openai` ||
86+
| Anthropic | `claude-3-5-sonnet-20240620` | `langchain-anthropic` ||
87+
88+
89+
# License
90+
`how-cil` is licensed under the MIT License, it can be found [here](https://github.com/FireHead90544/how-cli/blob/main/LICENSE).
91+
92+
93+
# Honourable Mentions
94+
This project is greatly inspired by [kynnyhsap's](https://github.com/kynnyhsap) [how](https://github.com/kynnyhsap/how). Though my implementation is completely different (refer to the below image for architectural details), but at the core both the projects aims to do the same thing. Also, check out LangChain & Typer using which this project was built.
8495

85-
| Provider | Model | Package |
86-
|:--------:|:-----:|:-------:|
87-
| Google | `gemini-1.5-flash` | `langchain-google-genai` |
96+
![arch](https://github.com/user-attachments/assets/5335fb1d-7899-4ebf-9ff3-dfa139a9c5f8)

how/core/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Package containing the core modules of the project.
33
"""
44

5-
__version__ = "0.1.0"
5+
__version__ = "0.2.0"
66
__author__ = "Rudransh Joshi (FireHead90544)"

how/core/providers.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
import os
22
from langchain_google_genai import ChatGoogleGenerativeAI
3+
from langchain_google_vertexai import ChatVertexAI
4+
from langchain_openai import ChatOpenAI
5+
from langchain_anthropic import ChatAnthropic
6+
from langchain_groq import ChatGroq
37

48
os.environ["GRPC_VERBOSITY"] = "NONE"
59

610
LLM_PROVIDERS = {
7-
"Gemini": { "provider": ChatGoogleGenerativeAI, "model": "gemini-1.5-flash" },
11+
"GoogleGenAI": { "provider": ChatGoogleGenerativeAI, "model": "gemini-1.5-flash" },
12+
"GoogleVertexAI": { "provider": ChatVertexAI, "model": "gemini-1.5-flash" },
13+
"GroqMistralAI": { "provider": ChatGroq, "model": "mixtral-8x7b-32768" },
14+
"GroqLLaMa": { "provider": ChatGroq, "model": "llama3-70b-8192" },
15+
"OpenAI": { "provider": ChatOpenAI, "model": "gpt-4o" },
16+
"Anthropic": { "provider": ChatAnthropic, "model": "claude-3-5-sonnet-20240620" }
817
}

requirements.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
typer
22
langchain
3-
langchain-google-genai
3+
langchain-google-genai
4+
langchain-google-vertexai
5+
langchain-groq
6+
langchain-openai
7+
langchain-anthropic

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from how import __version__, __author__
22
from setuptools import setup, find_packages
33

4-
with open("README.md", "r") as f:
4+
with open("README.md", "r", encoding="utf-8") as f:
55
readme = f.read()
66

77
with open("requirements.txt", "r") as f:

0 commit comments

Comments
 (0)