Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anthropic-version header is required #19

Open
christiangenco opened this issue Oct 22, 2023 · 0 comments
Open

anthropic-version header is required #19

christiangenco opened this issue Oct 22, 2023 · 0 comments

Comments

@christiangenco
Copy link

I'm trying to use this for the first time. After setting up the project with smol-dev-js setup I ran smol-dev-js run and got this output:

--------------------
🐣 [ai]: hi its me, the ai dev ! you said you wanted
         here to help you with your project, which is a ....
--------------------
MY PROMPT
--------------------
🐣 [ai]: What would you like me to do? (PS: this is not a chat system, there is no chat memory prior to this point)
✔ [you]:  … create a new next.js project with tailwind
🐣 [ai]: ## Unable to handle prompt for ...
{"model":"claude-v1-100k","temperature":0,"top_p":1,"prompt":"\n\nHuman: You are an assistant, who can only reply in JSON object, reply with a yes (in a param named 'reply') if you understand\n\nAssistant: {\"reply\":\"yes\"}\n\nHuman: [object Object]\n[object Object]\n[object Object]\n[object Object]\n[object Object]\n\nAssistant:","max_tokens_to_sample":89905,"stop_sequence":["<|endoftext|>","\n\nHuman:","\n\nhuman:"]}
## Recieved response ...
{"error":{"type":"invalid_request_error","message":"anthropic-version header is required"}}
## Recieved error ...
[invalid_request_error] undefined
## Unable to handle prompt for ...
{"model":"claude-v1-100k","temperature":0,"top_p":1,"prompt":"\n\nHuman: You are an assistant, who can only reply in JSON object, reply with a yes (in a param named 'reply') if you understand\n\nAssistant: {\"reply\":\"yes\"}\n\nHuman: [object Object]\n[object Object]\n[object Object]\n[object Object]\n[object Object]\n\nHuman: Please update your answer, and respond with only a single JSON object, in the requested format. No apology is needed.\n\nAssistant:","max_tokens_to_sample":89873,"stop_sequence":["<|endoftext|>","\n\nHuman:","\n\nhuman:"]}
## Recieved response ...
{"error":{"type":"invalid_request_error","message":"anthropic-version header is required"}}

Looks like there might have been an Anthropic API update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant