update project version, add local model images to README, and remove default local model from consts.py

pull/9/head
Saryev Rustam 11 months ago
parent e8d7b542ea
commit e03ca88549

@ -23,11 +23,17 @@ Select model type: Local or OpenAI
<img width="300" alt="select_type" src="https://github.com/rsaryev/talk-codebase/assets/70219513/05196fe5-78ff-44ff-8ca3-0313ccef572a"> <img width="300" alt="select_type" src="https://github.com/rsaryev/talk-codebase/assets/70219513/05196fe5-78ff-44ff-8ca3-0313ccef572a">
OpenAI
If you use the OpenAI model, you need an OpenAI API key. You can get it from [here](https://beta.openai.com/). Then you will be offered a choice of available models. If you use the OpenAI model, you need an OpenAI API key. You can get it from [here](https://beta.openai.com/). Then you will be offered a choice of available models.
<img width="300" alt="select" src="https://github.com/rsaryev/talk-codebase/assets/70219513/889ad7c8-a489-4ce8-83af-148b7df09229"> <img width="300" alt="select" src="https://github.com/rsaryev/talk-codebase/assets/70219513/889ad7c8-a489-4ce8-83af-148b7df09229">
Local
<img width="696" alt="Снимок экрана 2023-07-12 в 03 47 58" src="https://github.com/rsaryev/talk-codebase/assets/70219513/16988911-c605-4570-bfb4-4a34a03cd4a1">
If you want some files to be ignored, add them to .gitignore. If you want some files to be ignored, add them to .gitignore.
## Reset configuration ## Reset configuration

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "talk-codebase" name = "talk-codebase"
version = "0.1.43" version = "0.1.45"
description = "talk-codebase is a powerful tool for querying and analyzing codebases." description = "talk-codebase is a powerful tool for querying and analyzing codebases."
authors = ["Saryev Rustam <rustam1997@gmail.com>"] authors = ["Saryev Rustam <rustam1997@gmail.com>"]
readme = "README.md" readme = "README.md"

@ -14,7 +14,6 @@ MODEL_TYPES = {
"OPENAI": "openai", "OPENAI": "openai",
"LOCAL": "local", "LOCAL": "local",
} }
DEFAULT_LOCAL_MODEL = "orca-mini-3b.ggmlv3.q4_0.bin"
DEFAULT_MODEL_DIRECTORY = os.path.join(str(Path.home()), ".cache", "gpt4all").replace("\\", "\\\\") DEFAULT_MODEL_DIRECTORY = os.path.join(str(Path.home()), ".cache", "gpt4all").replace("\\", "\\\\")
DEFAULT_CONFIG = { DEFAULT_CONFIG = {
@ -23,7 +22,6 @@ DEFAULT_CONFIG = {
"chunk_overlap": "256", "chunk_overlap": "256",
"k": "1", "k": "1",
"temperature": "0.7", "temperature": "0.7",
"local_model_name": DEFAULT_LOCAL_MODEL,
"model_path": DEFAULT_MODEL_DIRECTORY, "model_path": DEFAULT_MODEL_DIRECTORY,
"n_batch": "8", "n_batch": "8",
} }

Loading…
Cancel
Save