This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //usr/bin/env jbang "$0" "$@" ; exit $? | |
| //JAVA 25 | |
| //PREVIEW | |
| //DEPS io.arconia:arconia-docling-spring-boot-starter:0.16.1 | |
| //DEPS io.arconia:arconia-dev-services-docling:0.16.1 | |
| package io.arconia.docling; | |
| import io.arconia.docling.client.DoclingClient; | |
| import io.arconia.docling.client.convert.request.ConvertDocumentRequest; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Configuration | |
| public class AiConfig { | |
| @Bean | |
| ChatMemory jdbcChatMemory(JdbcChatMemoryRepository chatMemoryRepository) { | |
| return MessageWindowChatMemory.builder() | |
| .chatMemoryRepository(chatMemoryRepository) | |
| .build(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //usr/bin/env jbang "$0" "$@" ; exit $? | |
| //JAVA 23 | |
| //PREVIEW | |
| //REPOS mavencentral,https://repo.spring.io/milestone | |
| //DEPS org.springframework.boot:spring-boot-starter:3.3.5 | |
| //DEPS org.springframework.ai:spring-ai-ollama-spring-boot-starter:1.0.0-M3 | |
| //JAVA_OPTIONS -Dspring.main.web-application-type=none | |
| //JAVA_OPTIONS -Dspring.ai.ollama.init.pull-model-strategy=always | |
| //JAVA_OPTIONS -Dspring.ai.ollama.chat.options.model=llama3.2:1b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private RestClient buildRestClient(OpenAiClientConfig clientConfig, RestClient.Builder restClientBuilder) { | |
| var settings = new ClientHttpRequestFactorySettings( | |
| clientConfig.connectTimeout(), clientConfig.readTimeout(), SslBundle.of(null)); | |
| var requestFactory = ClientHttpRequestFactories.get(settings); | |
| Consumer<HttpHeaders> defaultHeaders = headers -> { | |
| headers.setContentType(MediaType.APPLICATION_JSON); | |
| if (StringUtils.hasText(clientConfig.apiKey())) { | |
| headers.setBearerAuth(clientConfig.apiKey()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #@ load("@ytt:data", "data") | |
| #@ load("@ytt:overlay", "overlay") | |
| #@ load("/config.star", "get_ca_certificates") | |
| #@ if data.values.ca_cert_data != "": | |
| #@yaml/text-templated-strings | |
| --- | |
| apiVersion: v1 | |
| kind: Secret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #@data/values-schema | |
| --- | |
| service: | |
| enabled: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: tekton-pipelines-controller | |
| namespace: tekton-pipelines | |
| spec: | |
| selector: | |
| matchLabels: | |
| app.kubernetes.io/name: controller | |
| app.kubernetes.io/component: controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Imgpkg => https://carvel.dev/imgpkg | |
| imgpkg copy \ | |
| -i docker.io/thomasvitale/book-service:1.0 \ | |
| --to-repo ghcr.io/thomasvitale/book-service \ | |
| --cosign-signatures | |
| # Skopeo => https://github.com/containers/skopeo | |
| skopeo copy \ | |
| docker://docker.io/thomasvitale/book-service:1.0 \ | |
| docker://quay.io/thomasvitale/book-service:1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #@data/values | |
| --- | |
| config-contour: | |
| timeouts: | |
| connection-idle-timeout: 30s | |
| stream-idle-timeout: 2m | |
| disablePermitInsecure: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #@data/values | |
| --- | |
| config-features: | |
| secure-pod-defaults: "enabled" |
NewerOlder