Skip to content

Commit

Permalink
Merge pull request #34 from SebastianJames55/feature/deploy_mind-read…
Browse files Browse the repository at this point in the history
…er_#33

- connection to mindsdb cloud
  • Loading branch information
SebastianJames55 authored Sep 24, 2023
2 parents b7d9c98 + 95f5127 commit 7199de3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
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

0 comments on commit 7199de3

Please sign in to comment.