Spaces:
Runtime error
Runtime error
Update llm.py
Browse files
llm.py
CHANGED
|
@@ -16,7 +16,7 @@ def invoke_llm(context, task):
|
|
| 16 |
|
| 17 |
llm=ChatOpenAI(model_name="gpt-3.5-turbo",
|
| 18 |
temperature=0,
|
| 19 |
-
openai_api_key=os.
|
| 20 |
max_tokens=1000)
|
| 21 |
result = llm.invoke(prompt)
|
| 22 |
return result.content
|
|
|
|
| 16 |
|
| 17 |
llm=ChatOpenAI(model_name="gpt-3.5-turbo",
|
| 18 |
temperature=0,
|
| 19 |
+
openai_api_key=os.environ['OPENAI_KEY'],
|
| 20 |
max_tokens=1000)
|
| 21 |
result = llm.invoke(prompt)
|
| 22 |
return result.content
|