Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions examples/using_database_mind_text2sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@
# Load MindsDB API key from environment variable. or set it here.
MINDSDB_API_KEY = os.getenv('MINDSDB_API_KEY')

# Set the model name for mind to use
model_name = 'gpt-4'

# Set the base URL for the MindsDB LiteLLM proxy.
base_url = 'https://ai.dev.mindsdb.com'
base_url = 'https://llm.mdb.ai'


# Connect to MindsDB LiteLLM proxy.
Expand Down Expand Up @@ -41,8 +38,7 @@
base_url= base_url,
api_key= MINDSDB_API_KEY,
name = f'my_house_data_mind_{uuid4().hex}',
data_source_configs=[pg_config],
model= model_name
data_source_configs=[pg_config]
)

# Actually pass in our tool to get a SQL completion.
Expand Down