File tree Expand file tree Collapse file tree 6 files changed +6
-4
lines changed
spring-cloud-oci-samples/spring-cloud-oci-gen-ai-sample
java/com/oracle/cloud/spring/sample/genai/springcloudocigenaisample Expand file tree Collapse file tree 6 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
- Copyright (c) 2023 , Oracle and/or its affiliates.
3
+ Copyright (c) 2024 , Oracle and/or its affiliates.
4
4
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
5
5
-->
6
6
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
- Copyright (c) 2023 , Oracle and/or its affiliates.
3
+ Copyright (c) 2024 , Oracle and/or its affiliates.
4
4
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
5
5
-->
6
6
Original file line number Diff line number Diff line change 14
14
15
15
@ SpringBootTest
16
16
@ EnabledIfEnvironmentVariable (named = "OCI_COMPARTMENT_ID" , matches = ".+" )
17
+ @ EnabledIfEnvironmentVariable (named = "OCI_COHERE_MODEL_ID" , matches = ".+" )
17
18
@ ActiveProfiles ("chat-cohere" )
18
19
public class CohereChatIT extends ChatIT {
19
20
@ Autowired
Original file line number Diff line number Diff line change 14
14
15
15
@ SpringBootTest
16
16
@ EnabledIfEnvironmentVariable (named = "OCI_COMPARTMENT_ID" , matches = ".+" )
17
+ @ EnabledIfEnvironmentVariable (named = "OCI_LLAMA_MODEL_ID" , matches = ".+" )
17
18
@ ActiveProfiles ("chat-llama" )
18
19
public class LLamaChatIT extends ChatIT {
19
20
@ Autowired
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2024, Oracle and/or its affiliates.
2
2
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3
3
4
- spring.cloud.oci.genai.chat.on-demand-model-id =ocid1.generativeaimodel.oc1.us-chicago-1.amaaaaaask7dceyawk6mgunzodenakhkuwxanvt6wo3jcpf72ln52dymk4wq
4
+ spring.cloud.oci.genai.chat.on-demand-model-id =${OCI_COHERE_MODEL_ID}
5
5
spring.cloud.oci.genai.chat.inference-request-type =cohere
6
6
spring.cloud.oci.genai.embedding.enabled =false
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2024, Oracle and/or its affiliates.
2
2
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3
3
4
- spring.cloud.oci.genai.chat.on-demand-model-id =ocid1.generativeaimodel.oc1.us-chicago-1.amaaaaaask7dceyaycmwwnvu2gaqrffquofgmshlqzcdwpk727n4cykg34oa
4
+ spring.cloud.oci.genai.chat.on-demand-model-id =${OCI_LLAMA_MODEL_ID}
5
5
spring.cloud.oci.genai.chat.inference-request-type =llama
6
6
spring.cloud.oci.genai.embedding.enabled =false
You can’t perform that action at this time.
0 commit comments