Update llm.md
This commit is contained in:
parent
fdb445c26c
commit
05cd05efe2
|
|
@ -33,11 +33,13 @@ Here, we provide some minimal example implementations:
|
||||||
from anthropic import Anthropic
|
from anthropic import Anthropic
|
||||||
client = Anthropic(api_key="YOUR_API_KEY_HERE")
|
client = Anthropic(api_key="YOUR_API_KEY_HERE")
|
||||||
response = client.messages.create(
|
response = client.messages.create(
|
||||||
model="claude-2",
|
model="claude-3-7-sonnet-20250219",
|
||||||
messages=[{"role": "user", "content": prompt}],
|
max_tokens=3000,
|
||||||
max_tokens=100
|
messages=[
|
||||||
|
{"role": "user", "content": prompt}
|
||||||
|
]
|
||||||
)
|
)
|
||||||
return response.content
|
return response.content[0].text
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Google (Generative AI Studio / PaLM API)
|
3. Google (Generative AI Studio / PaLM API)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue