kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
24 wiersze
608 B
JavaScript
24 wiersze
608 B
JavaScript
#!/usr/bin/env node
|
|
import 'dotenv/config'
|
|
|
|
import { createDexterFunctions } from '@agentic/stdlib/dexter'
|
|
import { e2b } from '@agentic/stdlib/e2b'
|
|
import { ChatModel, createAIRunner } from '@dexaai/dexter'
|
|
|
|
async function main() {
|
|
const runner = createAIRunner({
|
|
chatModel: new ChatModel({
|
|
params: { model: 'gpt-4o', temperature: 0 },
|
|
debug: true
|
|
}),
|
|
functions: createDexterFunctions(e2b)
|
|
})
|
|
|
|
const result = await runner(
|
|
'Visualize a distribution of height of men based on the latest data you know. Also print the median value.'
|
|
)
|
|
console.log(result)
|
|
}
|
|
|
|
await main()
|