Comments (4)
Hi @tstanek390 thanks for raising this. Did you try doing like so export OPENAI_API_KEY=sk-...
within the root directory?
from gpt-researcher.
Also you can test if it exists by adding these lines to the main.py file:
import os
env_variable_value = os.getenv('OPENAI_API_KEY')
print(env_variable_value)
from gpt-researcher.
thanks for the answer, stupid me, i put brackets on the api key itself, and that was the reason behing the error. Now its working perfectly, thanks a lot for great project, big ups! :)
from gpt-researcher.
Great to hear!
from gpt-researcher.
Related Issues (20)
- Fail to install requirements HOT 2
- Fail to load app HOT 8
- Bad Request - https://api.tavily.com/search HOT 4
- Building wheel for tiktoken (pyproject.toml) did not run successfully. HOT 1
- Pinning packages in requirements.txt HOT 2
- [Documentation]: Change 'PermChain' to 'LangGraph' HOT 1
- requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.tavily.com/search
- aiofiles to "requirements.txt" HOT 1
- migrating Permchain examples to Langgraph HOT 1
- coud not find langchain although it is there. HOT 1
- Seperate Token Limit for Inferencing & Writing HOT 2
- Enable editing the api-keys not from the env-vars HOT 2
- Add pyproject.toml HOT 3
- Feature Request - Implementation of Follow-Up Question Functionality HOT 4
- Loosen requirements HOT 3
- Can the search be customized more finely? HOT 1
- tavily API‘s limitations during use HOT 1
- customize the OpenAI API URL HOT 3
- Pls support Pinecone Retriever HOT 4
- Is it possible to provide suggested "subquestions" as well as a main question? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpt-researcher.