Skip to content

Commit bed18b7

Browse files
author
Jet Xu
committed
- Upgrade to codestral-latest
1 parent 7dcae8e commit bed18b7

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.REPL.enableREPLSmartSend": false
3+
}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [0.2.3] - 2024-11-24
99

10+
### Optimized
11+
- Upgrade to codestral-latest
12+
13+
## [0.2.3] - 2024-11-24
14+
1015
### Optimized
1116
- Upgrade to mistral-large-2411
1217

llama_github/llm_integration/initial_load.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# initial_load.py
22
from typing import Optional, Any
33
from threading import Lock
4-
from langchain_openai import ChatOpenAI
5-
from langchain_mistralai.chat_models import ChatMistralAI
64

75
from llama_github.config.config import config
86
from llama_github.logger import logger
@@ -67,15 +65,17 @@ def __init__(self,
6765
self.llm = llm
6866
self.model_type = "Custom_langchain_llm"
6967
elif mistral_api_key is not None and mistral_api_key != "" and self.llm is None:
70-
logger.info("Initializing Mistral API...")
71-
self.llm = ChatMistralAI(mistral_api_key=mistral_api_key, model="mistral-large-2411")
68+
logger.info("Initializing Codestral API...")
69+
from langchain_mistralai.chat_models import ChatMistralAI
70+
self.llm = ChatMistralAI(mistral_api_key=mistral_api_key, model="codestral-latest")
7271
self.llm_simple = ChatMistralAI(
7372
mistral_api_key=mistral_api_key,
74-
model="open-mistral-nemo",
73+
model="open-mistral-nemo",
7574
temperature=0.2
7675
)
7776
self.model_type = "OpenAI"
7877
elif openai_api_key is not None and openai_api_key != "" and self.llm is None:
78+
from langchain_openai import ChatOpenAI
7979
logger.info("Initializing OpenAI API...")
8080
self.llm = ChatOpenAI(api_key=openai_api_key, model="gpt-4-turbo")
8181
self.llm_simple = ChatOpenAI(

llama_github/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.2.6'
1+
__version__ = '0.2.7'

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pydantic
88
requests
99
transformers
1010
urllib3
11-
sys
1211
platform
1312
subprocess
1413
pydantic_core

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = llama-github
3-
version = 0.2.6
3+
version = 0.2.7
44
author = Jet Xu
55
author_email = [email protected]
66
description = Llama-github is an open-source Python library that empowers LLM Chatbots, AI Agents, and Auto-dev Agents to conduct Retrieval from actively selected GitHub public projects. It Augments through LLMs and Generates context for any coding question, in order to streamline the development of sophisticated AI-driven applications.

0 commit comments

Comments
 (0)