Comments (7)
The model is configured here
https://github.com/assafelovic/gpt-researcher/blob/master/config/config.py#L25
By accessing an enviroment variable
self.smart_llm_model = os.getenv("SMART_LLM_MODEL", "gpt-4")
If you are having issues with access to gpt-4
, you can set an environment variable with a model name that you do have access to e.g. gpt-3.5-turbo
For example:
export SMART_LLM_MODEL="gpt-3.5-turbo"
from gpt-researcher.
Hi!
By making the following modifications, I was able to resolve the issue:
- In gpt-researcher/config/config.py, substitute in line 25 "gpt-4" with "gpt-3.5-turbo-16k"
- In gpt-researcher/config/config.py, substitute in line 27: 8000 with 4000
Upon executing this modified script, I encountered another error: "json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 58)". So, if you also get the same error, all you need to do is:
In gpt-researcher/agent/research_agent.py line 92, substitute "return json.loads(result)" with " return result". This avoids the double-parsing as result itself is a JSON Object.
Hope this helps!
from gpt-researcher.
I have the same problem.
from gpt-researcher.
Hi! I’m one of the founders of Sweep, a github app that solves issues(like small bugs) by writing pull requests.
This looks like a good issue for Sweep https://github.com/sweepai/sweep to try. It might need more details from the maintainers though.
We have onboarding instructions here, I’m also happy to help you onboard directly :)
from gpt-researcher.
I have the same error "openai.error.InvalidRequestError: The model: gpt-4
does not exist" just stopped.
from gpt-researcher.
@madiha1ahmed I did it your way and it worked. thanks!
from gpt-researcher.
It works for me now. Thanks
from gpt-researcher.
Related Issues (20)
- Support OpenAI API proxy HOT 1
- Provide other planner agents HOT 3
- Getting ImportError when building docker image HOT 2
- error while accessing app.tavily.com HOT 4
- Cannot install openai~=1.3.3 and openai~=1.6.1 HOT 1
- 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
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.