Quasar and @anthropic-ai/sdk": "^0.21.0",
Budget: $10 – $30 USD
When you bid on this project start your bid with "I CAN DO THIS"
There is so much automated bids that it just wastes time. Also bid responsibly and don't ask " What's your budget" Bid what you think it's worth to you.
I want a clean new Quasar Application that you load "@anthropic-ai/sdk": "^0.21.0", and makes a call using
Setting up a demo Quasar app takes less than 5 min.
my sample code:
async sendMessageToClaudeChatbot(message) {
this.Claude_question = "Claude Question";
const anthropic = new Anthropic({
apiKey: process.env.CLAUDE_COLAB,
});
console.log(anthropic);
const anthropic_message = await anthropic.messages.create({
// mode: "no-cors",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello, Claude" }],
model: "claude-3-opus-20240229",
});
this.Claude_answer = anthropic_message.content;
console.log(message.content);
try {
const response = await this.claude.sendMessage(
this.Claude_question
);
this.responseText = response.completionText;
} catch (error) {
this.Claude_answer(error);
console.error("Error sending message:", error);
}
},
And make the call without getting a cors message. It needs to be a Quasar app and not a node.js app. Make a page that has an Question and an answer input. Add a button that calls the function I provided. If you have better code you can use that. Hopefully you have done this before and have an API account at Anthropic. I don't want your API key and I will add $5.00 for you to get one.
I'm just looking for code to a good connection.
https://www.anthropic.com/claude
There is so much automated bids that it just wastes time. Also bid responsibly and don't ask " What's your budget" Bid what you think it's worth to you.
I want a clean new Quasar Application that you load "@anthropic-ai/sdk": "^0.21.0", and makes a call using
Setting up a demo Quasar app takes less than 5 min.
my sample code:
async sendMessageToClaudeChatbot(message) {
this.Claude_question = "Claude Question";
const anthropic = new Anthropic({
apiKey: process.env.CLAUDE_COLAB,
});
console.log(anthropic);
const anthropic_message = await anthropic.messages.create({
// mode: "no-cors",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello, Claude" }],
model: "claude-3-opus-20240229",
});
this.Claude_answer = anthropic_message.content;
console.log(message.content);
try {
const response = await this.claude.sendMessage(
this.Claude_question
);
this.responseText = response.completionText;
} catch (error) {
this.Claude_answer(error);
console.error("Error sending message:", error);
}
},
And make the call without getting a cors message. It needs to be a Quasar app and not a node.js app. Make a page that has an Question and an answer input. Add a button that calls the function I provided. If you have better code you can use that. Hopefully you have done this before and have an API account at Anthropic. I don't want your API key and I will add $5.00 for you to get one.
I'm just looking for code to a good connection.
https://www.anthropic.com/claude