kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: add ai sdk experimental_activeTools example
rodzic
2b05c9771f
commit
997755a4a9
|
@ -13,7 +13,7 @@ async function main() {
|
|||
model: openai('gpt-4o-mini'),
|
||||
tools: createAISDKTools(weather),
|
||||
experimental_activeTools: Array.from(weather.functions).map(
|
||||
(fn) => fn.spec.name
|
||||
(fn) => fn.name
|
||||
),
|
||||
toolChoice: 'required',
|
||||
temperature: 0,
|
||||
|
|
Ładowanie…
Reference in New Issue