Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update model name and base URL in minds Text2SQL example #144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
Loading