Skip to content

Commit a03a394

Browse files
committed
LLM Suggestion local runs
- Adds LLM feature to next - Creates endpoints in flask - Adds conditional logic checking for OPEN_API_KEY - Update READEME.md - Update env-config with next vars
1 parent 7162f9d commit a03a394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask/src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ def __init__(self, import_name, *args, **kwargs):
9999
app = MyFlask(__name__)
100100
CORS(app)
101101

102-
client = OpenAI(api_key= os.getenv("OPENAI_API_KEY"))
103102

104103

105104
@app.route('/suggestion', methods=['GET'])
106105
def suggestion():
107-
print("got request")
106+
print("got suggestion request")
107+
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
108108
sentry_sdk.metrics.incr(
109109
key="endpoint_call",
110110
value=1,

0 commit comments

Comments
 (0)