Skip to content

Commit

Permalink
chore(deps) : upgrade to spring openai 1.0.0-M2
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Sep 20, 2024
1 parent 2438a2a commit 4794774
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chatbot/chatbot-ollama-springai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.example.chatbot</groupId>
Expand Down
2 changes: 1 addition & 1 deletion embeddingstores/neo4j-springai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>21</java.version>
<spring-ai.version>1.0.0-M1</spring-ai.version>
<spring-ai.version>1.0.0-M2</spring-ai.version>
<spotless.version>2.43.0</spotless.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ spring.ai.openai.base-url=http://langchain4j.dev/demo/openai
spring.ai.openai.image.enabled=false
spring.ai.openai.chat.options.temperature=0.2
spring.ai.openai.chat.options.model=gpt-4o-mini
spring.ai.openai.chat.options.responseFormat=json_object
##FIXME
#spring.ai.openai.chat.options.responseFormat=json_object
spring.ai.openai.embedding.options.model=text-embedding-3-small

# only for demo purpose
spring.ai.vectorstore.neo4j.initialize-schema=true

spring.threads.virtual.enabled=true


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class TestNeo4jVectorEmbeddingStoreExample {
@Bean
@ServiceConnection
Neo4jContainer<?> neo4jContainer() {
return new Neo4jContainer<>(DockerImageName.parse("neo4j:5")).withLabsPlugins("apoc");
return new Neo4jContainer<>(DockerImageName.parse("neo4j:5")).withPlugins("apoc");
}

public static void main(String[] args) {
Expand Down

0 comments on commit 4794774

Please sign in to comment.