Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel committed Feb 24, 2025
1 parent 2d5c5fd commit 68e64f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions examples/ai-core/src/generate-text/anthropic-reasoning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import 'dotenv/config';
async function main() {
const result = await generateText({
model: anthropic('claude-3-7-sonnet-20250219'),
// prompt: 'How many "r"s are in the word "strawberry"?',
prompt:
'ANTHROPIC_MAGIC_STRING_TRIGGER_REDACTED_THINKING_46C9A13E193C177646C7398A98432ECCCE4C1253D5E2D82641AC0E52CC2876CB',
prompt: 'How many "r"s are in the word "strawberry"?',
temperature: 0.5, // should get ignored (warning)
providerOptions: {
anthropic: {
Expand Down
4 changes: 1 addition & 3 deletions examples/ai-core/src/stream-text/anthropic-reasoning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import 'dotenv/config';

async function main() {
const result = streamText({
model: anthropic('claude-3-7-sonnet-20250219'),
model: anthropic('claude-3-7-sonnet-20250219`'),
prompt: 'How many "r"s are in the word "strawberry"?',
// prompt:
// 'ANTHROPIC_MAGIC_STRING_TRIGGER_REDACTED_THINKING_46C9A13E193C177646C7398A98432ECCCE4C1253D5E2D82641AC0E52CC2876CB',
temperature: 0.5, // should get ignored (warning)
onError: error => {
console.error(error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export async function POST(req: Request) {
const result = streamText({
model: anthropic('claude-3-7-sonnet-20250219'),
messages,
// prompt:
// 'ANTHROPIC_MAGIC_STRING_TRIGGER_REDACTED_THINKING_46C9A13E193C177646C7398A98432ECCCE4C1253D5E2D82641AC0E52CC2876CB',
toolCallStreaming: true,
maxSteps: 5, // multi-steps for server-side tools
tools: {
Expand Down

0 comments on commit 68e64f7

Please sign in to comment.