Features
Explore
About
Docs
Pricing
Log in
Sign up
Log in
Sign Up
jacoblee93
/
model
0 Likes
Code
Comments
Pull Requests
Fork
1
References
model
Script
v1
Fork
1
2
3
4
5
6
7
8
9
import
{
ChatOpenAI
}
from
"langchain/chat_models/openai"
;
const
model
=
new
ChatOpenAI
(
{
temperature
:
0.9
,
openAIApiKey
:
@
me
.
secrets
.
OPENAI_API_KEY
,
}
)
;
return
model
.
invoke
(
"What is your name?"
)
;
export
{
model
}
;
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.
Sign up for free
?