Skip to content

Commit a901e4c

Browse files
authored
Updated langchain-core dependency to resolve conflict. (#200)
* Updated langchain-core dependency to resolve conflict. * Updated README for Mistral instructions. * updated the env.example file * updated README * accepted incoming changes from upstream
1 parent aed8c4e commit a901e4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example-apps/chatbot-rag-app/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ export GOOGLE_APPLICATION_CREDENTIALS=<path-json-service-account>
119119

120120
### Mistral AI
121121

122-
To use Mistral AI you need to set the following environment variables:
122+
To use Mistral AI you need to set the following environment variables. The app has been tested with Mistral Large Model deployed through Microsoft Azure. More information [here](https://learn.microsoft.com/en-us/azure/ai-studio/how-to/deploy-models-mistral).
123123

124124
```
125125
export LLM_TYPE=mistral
126126
export MISTRAL_API_KEY=...
127-
export MISTRAL_API_ENDPOINT=... # optional
127+
export MISTRAL_API_ENDPOINT=... # should be of the form https://<endpoint>.<region>.inference.ai.azure.com
128128
export MISTRAL_MODEL=... # optional
129129
```
130130

example-apps/chatbot-rag-app/api/llm_integrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def init_bedrock(temperature):
6464
def init_mistral_chat(temperature):
6565
MISTRAL_API_ENDPOINT = os.getenv("MISTRAL_API_ENDPOINT")
6666
MISTRAL_API_KEY = os.getenv("MISTRAL_API_KEY")
67-
MISTRAL_MODEL = os.getenv("MISTRAL_MODEL")
67+
MISTRAL_MODEL = os.getenv("MISTRAL_MODEL", "Mistral-large")
6868
kwargs = {
6969
"mistral_api_key": MISTRAL_API_KEY,
7070
"temperature": temperature,

0 commit comments

Comments
 (0)