Starting from the home interface of the Open Code App, select "Settings" -> "Providers"
Then select "Custom provider" -> "+ Connect"
You'll see this window:
fill the fields:
- Provider ID: giotto_ai
- Display name: Giotto.ai
- Base URL: https://cloud.giotto.ai/v1
- API key: my-client-id:my-client-secret (see here for more details)
- models: giotto-alto in both fields
then click "Submit". You should see "Giotto.ai connected"
In the chat, click the models dropdown menu, and select the Giotto model.
Integration with Open Code Terminal
With Open Code Terminal is even easier. You need to edit 2 files. Frist, the auth.json file (usually located at ~/.local/share/opencode/auth.json), where you must add your credentials:
{
"giotto_ai": {
"type": "api",
"key": "my-client-id:my-client-secret"
}
}See here for more details about the client ID and API key.
Then the opencode.jsonc file, (usually located at ~/.config/opencode/opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"giotto_ai": {
"options": {
"baseURL": "https://cloud.giotto.ai/v1"
},
"name": "Giotto.ai",
"npm": "@ai-sdk/openai-compatible",
"models": {
"giotto-alto": {
"name": "giotto-alto"
}
}
}
},
}
Then restart Opencode, and you should be able to select giotto-alto
Then ctrl+p -> Switch model and select giotto-alto
Comments
0 comments
Article is closed for comments.