File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
supporting-blog-content/context-engineering-mistral-completions Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3434 "source" : [
3535 " import requests\n " ,
3636 " import json\n " ,
37+ " import getpass\n " ,
3738 " import os\n " ,
3839 " from typing import Dict, Any, Generator\n " ,
3940 " from IPython.display import display, Markdown, clear_output\n " ,
6162 "outputs" : [],
6263 "source" : [
6364 " # Configuration - Update these values with your credentials\n " ,
64- " ELASTICSEARCH_HOST = \" https://tralmis-tral-d91b08.es.us-central1.gcp.elastic.cloud:443 \" \n" ,
65- " ELASTICSEARCH_API_KEY = \" elasticsearchapikey== \" \n" ,
65+ " ELASTICSEARCH_ENDPOINT = getpass.getpass( \" Enter Elastic Endpoint: \" ) \n "
66+ " ELASTICSEARCH_API_KEY = getpass.getpass( \" Enter Elasticsearch API key: \" ) \n " ,
6667 " MISTRAL_API_KEY = \" mistralapikey==\" # Replace with your Mistral API key\n " ,
6768 " \n " ,
6869 " MISTRAL_MODEL = \" mistral-large-latest\" # Mistral model to use\n " ,
You can’t perform that action at this time.
0 commit comments