-
I imported program = guidance('''The best thing about the beach is {{~gen 'best' temperature=0.7 max_tokens=7}}''')
program() The Error:
So I added the following (tried to add environment variable): import os
os.environ['OPENAI_API_KEY'] = "MY_API_KEY" But, I still had the same issue. Anyone has any idea why this isn't working??? I'm also curious how you guys are using guidance apart from using it on Colab. I believe there are few steps I need to setup before using guidance properly, for example, there is specific document in LangChain on how to use it from scratch. ANY helpful info would be nice. Thanks you so much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Solved it by importing openai package but I'm still confused. import openai
openai.api_key = "YOUR_API_KEY" I thought |
Beta Was this translation helpful? Give feedback.
Solved it by importing openai package but I'm still confused.
I thought
os.environ['OPENAI_API_KEY'] = "MY_API_KEY"
would also work 😢