@@ -101,7 +101,7 @@ async function main() {
101101 const completion = await anthropic .completions .create ({
102102 model: ' claude-2' ,
103103 max_tokens_to_sample: 300 ,
104- prompt: ` ${ Anthropic .HUMAN_PROMPT } how does a court case get to the Supreme Court? ${ Anthropic .AI_PROMPT } ` ,
104+ prompt: ` ${ Anthropic .HUMAN_PROMPT } how does a court case get to the Supreme Court?${ Anthropic .AI_PROMPT } ` ,
105105 });
106106}
107107
@@ -118,7 +118,7 @@ import Anthropic from '@anthropic-ai/sdk';
118118const anthropic = new Anthropic ();
119119
120120const stream = await anthropic .completions .create ({
121- prompt: ` ${Anthropic .HUMAN_PROMPT } Your prompt here ${Anthropic .AI_PROMPT } ` ,
121+ prompt: ` ${Anthropic .HUMAN_PROMPT } Your prompt here${Anthropic .AI_PROMPT } ` ,
122122 model: ' claude-2' ,
123123 stream: true ,
124124 max_tokens_to_sample: 300 ,
@@ -144,7 +144,7 @@ const anthropic = new Anthropic({
144144
145145async function main() {
146146 const params: Anthropic .CompletionCreateParams = {
147- prompt: ` ${Anthropic .HUMAN_PROMPT } how does a court case get to the Supreme Court? ${Anthropic .AI_PROMPT } ` ,
147+ prompt: ` ${Anthropic .HUMAN_PROMPT } how does a court case get to the Supreme Court?${Anthropic .AI_PROMPT } ` ,
148148 max_tokens_to_sample: 300 ,
149149 model: ' claude-2' ,
150150 };
@@ -172,7 +172,7 @@ a subclass of `APIError` will be thrown:
172172async function main() {
173173 const completion = await anthropic .completions
174174 .create ({
175- prompt: ` ${Anthropic .HUMAN_PROMPT } Your prompt here ${Anthropic .AI_PROMPT } ` ,
175+ prompt: ` ${Anthropic .HUMAN_PROMPT } Your prompt here${Anthropic .AI_PROMPT } ` ,
176176 max_tokens_to_sample: 300 ,
177177 model: ' claude-2' ,
178178 })
@@ -221,7 +221,7 @@ const anthropic = new Anthropic({
221221// Or, configure per-request:
222222await anthropic .completions .create (
223223 {
224- prompt: ` ${ Anthropic .HUMAN_PROMPT } Can you help me effectively ask for a raise at work? ${ Anthropic .AI_PROMPT } ` ,
224+ prompt: ` ${ Anthropic .HUMAN_PROMPT } Can you help me effectively ask for a raise at work?${ Anthropic .AI_PROMPT } ` ,
225225 max_tokens_to_sample: 300 ,
226226 model: ' claude-2' ,
227227 },
@@ -245,7 +245,7 @@ const anthropic = new Anthropic({
245245// Override per-request:
246246await anthropic .completions .create (
247247 {
248- prompt: ` ${Anthropic .HUMAN_PROMPT } Where can I get a good coffee in my neighbourhood? ${Anthropic .AI_PROMPT } ` ,
248+ prompt: ` ${Anthropic .HUMAN_PROMPT } Where can I get a good coffee in my neighbourhood?${Anthropic .AI_PROMPT } ` ,
249249 max_tokens_to_sample: 300 ,
250250 model: ' claude-2' ,
251251 },
@@ -272,7 +272,7 @@ const anthropic = new Anthropic();
272272
273273const response = await anthropic .completions
274274 .create ({
275- prompt: ` ${Anthropic .HUMAN_PROMPT } Can you help me effectively ask for a raise at work? ${Anthropic .AI_PROMPT } ` ,
275+ prompt: ` ${Anthropic .HUMAN_PROMPT } Can you help me effectively ask for a raise at work?${Anthropic .AI_PROMPT } ` ,
276276 max_tokens_to_sample: 300 ,
277277 model: ' claude-2' ,
278278 })
@@ -305,7 +305,7 @@ const anthropic = new Anthropic({
305305// Override per-request:
306306await anthropic .completions .create (
307307 {
308- prompt: ` ${Anthropic .HUMAN_PROMPT } How does a court case get to the Supreme Court? ${Anthropic .AI_PROMPT } ` ,
308+ prompt: ` ${Anthropic .HUMAN_PROMPT } How does a court case get to the Supreme Court?${Anthropic .AI_PROMPT } ` ,
309309 max_tokens_to_sample: 300 ,
310310 model: ' claude-2' ,
311311 },
0 commit comments