Tanzu Platform for Kubernetes currently can utilize the GenAI for Tanzu Platform 0.6 service via a PreProvisionedService with a secret derived from a TPCF service key. The unit tests provided reflect the current state of this contract.
Comment From: markpollack
When I run the test TanzuBindingsPropertiesProcessorTests
I get the error
java.lang.AssertionError:
Expecting map:
{"spring.ai.openai.chat.api-key"="demo", "spring.ai.openai.chat.base-url"="https://my.openai.example.net", "spring.ai.openai.chat.options.model"="llava1.6"}
to contain entries:
["spring.ai.openai.embedding.api-key"="demo2"]
but could not find the following map entries:
["spring.ai.openai.embedding.api-key"="demo2"]
at org.springframework.ai.bindings.TanzuBindingsPropertiesProcessorTests.propertiesAreContributed(TanzuBindingsPropertiesProcessorTests.java:60)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Comment From: svrc
Apologies, I was missing the typo that Ted caught above. I've remerged up to your current main if you'd like to rerun the tests.
Comment From: markpollack
oddly, i didn't even see Ted's comment, my eyes just glazed over it for some reason. thanks!
Comment From: sobychacko
Merged via https://github.com/spring-projects/spring-ai/commit/86cfe6158a5d1f65062f800cefb93404c13e4684.