SAP AI Core - Connection parameters inconsistent
Description
Currently SAP AI Core connection requires a simple API Key. This is not how SAP AI Core works. We need Client Id, Client Secret, Auth URL, Base URl etc... It would be highly benefitial to finalize the implementation. Let me know if you'd need more information.
Kaci.
Plugins
No response
OpenCode version
No response
Steps to reproduce
Try to connect to SAP AI core
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
This issue might be a duplicate of existing issues. Please check:
- #7306: OAuth client_credentials configuration - This issue is about OAuth flow configuration where Client ID and Client Secret credentials should trigger the client_credentials flow instead of authorization_code flow, which is directly related to SAP AI Core's authentication requirements.
Feel free to ignore if none of these address your specific case.
I guess im the only one building with sap ai core out here 😅
You can already use it with Cline, it works fine but it consumes token ridiculously. I would like to use it with Opencode and compare the performance.
I guess im the only one building with sap ai core out here 😅
I am also planning to use opencode sdk in my company project they have SAP AI CORE so would be great if natively we get it.
@rekram1-node
I guess im the only one building with sap ai core out here 😅
It is already handled but missing in TUI UI/UX, so it becomes confusing for new users.
Here it is: https://opencode.ai/docs/providers/#sap-ai-core
@rekram1-node Can we improve the TUI UI/UX to easily tell the user how to configure it, at least the website link should be there for reference so that we don't have to go manually in the docs and see it?
You can already use it with Cline, it works fine but it consumes token ridiculously. I would like to use it with Opencode and compare the performance.
I guess im the only one building with sap ai core out here 😅
I am also planning to use opencode sdk in my company project they have SAP AI CORE so would be great if natively we get it.
@rekram1-node
Is there a native way to track token usage on SAP AI CORE? I didn't find it, it doesn't have any logs, nothing like live usage counts, it only updates day-wise
Yes you have to go to your BTP dashboard-> subaccount : "AI Core" module -> on the left panel you go all the way down to "Usage". There you will find your Capacity Units Usage with the token consumed etc
You can already use it with Cline, it works fine but it consumes token ridiculously. I would like to use it with Opencode and compare the performance.
I guess im the only one building with sap ai core out here 😅
I am also planning to use opencode sdk in my company project they have SAP AI CORE so would be great if natively we get it.
@rekram1-node
Is there a native way to track token usage on SAP AI CORE? I didn't find it, it doesn't have any logs, nothing like live usage counts, it only updates day-wise
Yes you have to go to your BTP dashboard-> subaccount : "AI Core" module -> on the left panel you go all the way down to "Usage". There you will find your Capacity Units Usage with the token consumed etc
You can already use it with Cline, it works fine but it consumes token ridiculously. I would like to use it with Opencode and compare the performance.
I guess im the only one building with sap ai core out here 😅
I am also planning to use opencode sdk in my company project they have SAP AI CORE so would be great if natively we get it.
@rekram1-node
Is there a native way to track token usage on SAP AI CORE? I didn't find it, it doesn't have any logs, nothing like live usage counts, it only updates day-wise
But that only gives us the day-wise usage right? not realtime updated, it udpated day-wise also we can't see which LLM model used how many tokens and all and do you know about any logs which we can see?
It should be somewhere because they use azureOpenAi and OpenAi chat completion which includes this kind of metadata. I'll lett you know if I find anything.
It should be somewhere because they use azureOpenAi and OpenAi chat completion which includes this kind of metadata. I'll lett you know if I find anything.
We can extract that in code and save that from the metadata while calling API but if not saved then there is no record on the BTP portal, we also contacted SAP support they said to build our own tracking as they don't provide any such tracking realtime and logging (there is a sector for logs but it is always empty).
Yep I'm not surprised, I'm building my own anyway as I knew they were not creating any value. Sap knows how to make easy money
It should be somewhere because they use azureOpenAi and OpenAi chat completion which includes this kind of metadata. I'll lett you know if I find anything.
We can extract that in code and save that from the metadata while calling API but if not saved then there is no record on the BTP portal, we also contacted SAP support they said to build our own tracking as they don't provide any such tracking realtime and logging (there is a sector for logs but it is always empty).