PicoCreator / smol-dev-js

Smol personal AI, for smol incremental tasks in a JS project
MIT License
322 stars 52 forks source link

anthropic-version header is required #19

Open christiangenco opened 10 months ago

christiangenco commented 10 months ago

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?