Invoke secret
Browse files
IA.py
CHANGED
@@ -2,8 +2,12 @@
|
|
2 |
from openai import OpenAI
|
3 |
import operacionesIA
|
4 |
import asistente
|
|
|
5 |
|
6 |
-
|
|
|
|
|
|
|
7 |
|
8 |
def getMacronutrientes(prompt):
|
9 |
return operacionesIA.consulta(asistente.macronutrientes, prompt)
|
|
|
2 |
from openai import OpenAI
|
3 |
import operacionesIA
|
4 |
import asistente
|
5 |
+
import os
|
6 |
|
7 |
+
buzz = os.getenv("buzz")
|
8 |
+
#print("Esto es llave: ", buzz)
|
9 |
+
|
10 |
+
client = OpenAI(api_key=buzz)
|
11 |
|
12 |
def getMacronutrientes(prompt):
|
13 |
return operacionesIA.consulta(asistente.macronutrientes, prompt)
|