kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/704/head
rodzic
35d6fdc42a
commit
49016911ce
|
@ -7,10 +7,13 @@ import { generateText } from 'ai'
|
|||
|
||||
async function main() {
|
||||
const tavily = new TavilyClient()
|
||||
const openai = createOpenAI({ compatibility: 'strict' })
|
||||
const openai = createOpenAI({ compatibility: 'compatible' })
|
||||
|
||||
const result = await generateText({
|
||||
model: openai('gpt-4o-mini'),
|
||||
model: openai('gpt-4o-mini', {
|
||||
// TODO: https://github.com/transitive-bullshit/agentic/issues/702
|
||||
// structuredOutputs: true
|
||||
}),
|
||||
tools: createAISDKTools(tavily),
|
||||
toolChoice: 'required',
|
||||
temperature: 0,
|
||||
|
|
Ładowanie…
Reference in New Issue