From 05cd05efe2bee0974d2763835f129317f16309db Mon Sep 17 00:00:00 2001 From: Zach <33015448+zachary62@users.noreply.github.com> Date: Fri, 21 Mar 2025 12:54:56 -0400 Subject: [PATCH] Update llm.md --- docs/utility_function/llm.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/utility_function/llm.md b/docs/utility_function/llm.md index cbb586b..b805df4 100644 --- a/docs/utility_function/llm.md +++ b/docs/utility_function/llm.md @@ -33,11 +33,13 @@ Here, we provide some minimal example implementations: from anthropic import Anthropic client = Anthropic(api_key="YOUR_API_KEY_HERE") response = client.messages.create( - model="claude-2", - messages=[{"role": "user", "content": prompt}], - max_tokens=100 + model="claude-3-7-sonnet-20250219", + max_tokens=3000, + messages=[ + {"role": "user", "content": prompt} + ] ) - return response.content + return response.content[0].text ``` 3. Google (Generative AI Studio / PaLM API)