Comments (12)
Did just that; replaced every instance but I get the same error...
Any other suggestion?
from gpt-author.
Thank you for replying back to this post. I also did the same suggestion with replacing all the "gpt-4-32K" with "gpt-4". I now got a different error.
KeyError Traceback (most recent call last)
c:\Users\test\gpt-author\gpt_author_v2_1.ipynb Cell 7 line 5
3 num_chapters = 15
4 writing_style = "Clear and easily understandable, similar to a young adult novel. Lots of dialogue."
----> 5 novel, title, chapters, chapter_titles = write_fantasy_novel(prompt, num_chapters, writing_style, claude_true)
7 # Replace chapter descriptions with body text in chapter_titles
8 for i, chapter in enumerate(chapters):
c:\Users\test\gpt-author\gpt_author_v2_1.ipynb Cell 7 line 2
276 for i in range(num_chapters - 1):
277 print(f"Writing chapter {i+2}...") # + 2 because the first chapter was already added
--> 279 chapter = write_chapter(novel, storyline, chapter_titles[i+1])
280 try:
281 if len(str(chapter)) < 100:
c:\Users\test\gpt-author\gpt_author_v2_1.ipynb Cell 7 line 1
170 data = {
171 "model": "claude-2",
172 "prompt": prompt,
173 "max_tokens_to_sample": 5000,
174 }
176 response = requests.post(url, headers=headers, json=data)
--> 178 print_step_costs_anthropic(prompt, response.json()['completion'])
180 return 'Chapter ' + response.json()['completion'].strip().split('```')[0].strip()
181 else:
KeyError: 'completion'
from gpt-author.
I get the same error: InvalidRequestError: The model gpt-4
does not exist or you do not have access to it.
I have a paid openai subscription with an newly generated API key. Didn't work.
Tried it with again a new api key but still get this error.
I have other applications that succesfully use my openai key so that can hardly be the problem.
Anyone?
from gpt-author.
Replace all 'gpt-4-32k' with 'gpt-4' . The 32k is only available to a very small trial group and currently only being given out to the azure clients.
from gpt-author.
That error is happing on anthropic call and I am running without anthropic so I don't know exactly. I would recommended printing out response.json() before trying to extract completion. to see if anthropic is returning an error.
from gpt-author.
I replaced gpt-4-32k with GPT-3.5-Turbo-16k and so far so good
from gpt-author.
I tried to replace gpt-4-32k with GPT-3.5-Turbo-16k and I get this error now. I am sure I am missing something.
InvalidRequestError: The model GPT-3.5-Turbo-16k
does not exist
from gpt-author.
I tried to replace gpt-4-32k with GPT-3.5-Turbo-16k and I get this error now. I am sure I am missing something.
InvalidRequestError: The model
GPT-3.5-Turbo-16k
does not exist
can you paste/screenshot the full error code please?
from gpt-author.
This is what I am getting for an error.
from gpt-author.
This is what I am getting for an error.
can you try "gpt-3.5-turbo-16k" instead of "gpt-3.5-Turbo-16k"?
from gpt-author.
You need to use lowercase "gpt-3.5-turbo-16k" - it's case sensitive. Also, In order to access GPT-4, if your PAID (card linked to API billing**) account was created before August 2023, you must spend and have been billed at least $1.00 total in any given month to have been given access to GPT-4 APIs. After August, $0.50. Hope that helps!
from gpt-author.
I did use lowercase and still getting this error.
Step Cost (OpenAI): 0.1167
generated plots
Step Cost (OpenAI): 0.16626000000000002
selected best plot
Step Cost (OpenAI): 0.12078
plot improved
Step Cost (OpenAI): 0.03702
title generated
Generating storyline with chapters and high-level details...
Step Cost (OpenAI): 0.12096
Step Cost (OpenAI): 0.17178
storyline generated
Step Cost (OpenAI): 0.14802
Step Cost (OpenAI): 0.14802
first chapter written
Writing chapter 2...
KeyError Traceback (most recent call last)
c:\Users\zimba\gpt-author\gpt_author_v2_1.ipynb Cell 7 line 5
3 num_chapters = 15
4 writing_style = "Clear and easily understandable, similar to a young adult novel. Lots of dialogue."
----> 5 novel, title, chapters, chapter_titles = write_fantasy_novel(prompt, num_chapters, writing_style, claude_true)
7 # Replace chapter descriptions with body text in chapter_titles
8 for i, chapter in enumerate(chapters):
c:\Users\zimba\gpt-author\gpt_author_v2_1.ipynb Cell 7 line 2
276 for i in range(num_chapters - 1):
277 print(f"Writing chapter {i+2}...") # + 2 because the first chapter was already added
--> 279 chapter = write_chapter(novel, storyline, chapter_titles[i+1])
280 try:
281 if len(str(chapter)) < 100:
c:\Users\zimba\gpt-author\gpt_author_v2_1.ipynb Cell 7 line 1
170 data = {
171 "model": "claude-2",
172 "prompt": prompt,
173 "max_tokens_to_sample": 5000,
174 }
176 response = requests.post(url, headers=headers, json=data)
--> 178 print_step_costs_anthropic(prompt, response.json()['completion'])
180 return 'Chapter ' + response.json()['completion'].strip().split('```')[0].strip()
181 else:
from gpt-author.
Related Issues (20)
- use of Azure ChatGPT's API HOT 1
- Cannot find the generated book HOT 1
- Issue with OpenAI version HOT 1
- error 400 HOT 3
- Book II
- Example books using Claude Opus?
- Key content error HOT 9
- Support for the local models? HOT 2
- An update to the OpenAI access API version is required HOT 1
- anthropic cost HOT 2
- Error
- KeyError: 'content' HOT 2
- book help pls
- Support for more open source model
- KeyError: 'content' in Claude_Author.ipynb HOT 1
- Help in using the Claude Author neural network HOT 2
- Llama Support
- Rrrirjrjtjtjrjejrjtjen HOT 1
- Adel или девушка мечты
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-author.