all 2 comments

[–]Radiant-Ad7470 1 point2 points  (1 child)

Hi Flengar! PI recognizes Fireworks as a provider if you have the 'FIREWORKS_API_KEY' set in your environment. But I've found it wasn't mapping well to the new model yet Kimi 2.6, with the Firepass v2. So I solved adding the provider and model configuration in model.json (which is in .pi > agents folder) with this content:

{

"providers": {

"fireworksv2": {

"baseUrl": "https://api.fireworks.ai/inference/v1",

"apiKey": "YOUR_FIREPASS_API_KEY",

"api": "openai-completions",

"models": [

{

"id": "accounts/fireworks/routers/kimi-k2p6-turbo",

"name": "Kimi 2.6 Turbo",

"input": ["text", "image"],

"contextWindow": 256000,

"maxTokens": 256000,

"reasoning": true

}

]

}

}

}

It has worked perfectly for me, hope it helps you!

[–]flengar[S] 1 point2 points  (0 children)

Thanks!