Skip to content

Commit

Permalink
skip tokenizing html
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkrishnads committed Aug 5, 2024
1 parent 3b05c27 commit 37cf2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const tools = [
export const askClaude = async(
messages: Message[], html?: string, css?: string, js?: string,
): Promise<(Text | ToolUse)[]> => {
const systemPrompt = `${base_prompt} HTML: ${tokenize(html || '')}, CSS: ${tokenize(css || '')}, JS: ${tokenize(js || '')}`
const systemPrompt = `${base_prompt} HTML: ${html}, CSS: ${tokenize(css || '')}, JS: ${tokenize(js || '')}`

const reply = await makeAnthropicRequest<AnthropicResponse>({
model: 'claude-3-5-sonnet-20240620',
Expand Down

0 comments on commit 37cf2cd

Please sign in to comment.