Skip to content

anthropic-version header is required #19

@christiangenco

Description

@christiangenco

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions