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

- connection to mindsdb cloud #34

Merged
merged 1 commit into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion config/general.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Configuration settings
import os

# Mindsdb account email
MINDSDB_EMAIL = os.environ.get('MINDSDB_EMAIL')

# Mindsdb account password
MINDSDB_PASSWORD = os.environ.get('MINDSDB_PASSWORD')

# Project name
PROJECT_NAME = 'mind_reader_project'
9 changes: 9 additions & 0 deletions config/model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import os
# Model engine
MODEL_ENGINE = 'openai'
# Model name in engine
MODEL_NAME = 'text-davinci-003'
# OPENAI API KEY
OPENAI_API_KEY = os.environ.get('OPENAI_API_KEY')
# Model name in connector
MODEL_NAME_IN_CONNECTOR = 'gpt_model'
2 changes: 1 addition & 1 deletion mindsdb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from config.general import *


server = mindsdb_sdk.connect()
server = mindsdb_sdk.connect(login=MINDSDB_EMAIL, password=MINDSDB_PASSWORD)


def get_project():
Expand Down