forked from langchain4j/langchain4j-spring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'langchain4j:main' into main
- Loading branch information
Showing
52 changed files
with
952 additions
and
875 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
45 changes: 23 additions & 22 deletions
45
...g-boot-starter/src/main/java/dev/langchain4j/azure/openai/spring/ChatModelProperties.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
package dev.langchain4j.azure.openai.spring; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Getter | ||
@Setter | ||
class ChatModelProperties { | ||
record ChatModelProperties( | ||
|
||
String endpoint; | ||
String apiKey; | ||
String nonAzureApiKey; | ||
String organizationId; | ||
String deploymentName; | ||
Double temperature; | ||
Double topP; | ||
Integer maxTokens; | ||
Double presencePenalty; | ||
Double frequencyPenalty; | ||
String responseFormat; | ||
Integer seed; | ||
List<String> stop; | ||
Integer timeout; | ||
Integer maxRetries; | ||
Boolean logRequestsAndResponses; | ||
String endpoint, | ||
String serviceVersion, | ||
String apiKey, | ||
String deploymentName, | ||
Integer maxTokens, | ||
Double temperature, | ||
Double topP, | ||
Map<String, Integer> logitBias, | ||
String user, | ||
List<String> stop, | ||
Double presencePenalty, | ||
Double frequencyPenalty, | ||
Long seed, | ||
String responseFormat, | ||
Integer timeout, // TODO use Duration instead | ||
Integer maxRetries, | ||
Boolean logRequestsAndResponses, | ||
String userAgentSuffix, | ||
Map<String, String> customHeaders, | ||
String nonAzureApiKey | ||
) { | ||
} |
27 changes: 14 additions & 13 deletions
27
...t-starter/src/main/java/dev/langchain4j/azure/openai/spring/EmbeddingModelProperties.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package dev.langchain4j.azure.openai.spring; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import java.util.Map; | ||
|
||
@Getter | ||
@Setter | ||
class EmbeddingModelProperties { | ||
record EmbeddingModelProperties( | ||
|
||
String endpoint; | ||
String apiKey; | ||
String nonAzureApiKey; | ||
String deploymentName; | ||
Integer dimensions; | ||
Integer timeout; | ||
Integer maxRetries; | ||
Boolean logRequestsAndResponses; | ||
String endpoint, | ||
String serviceVersion, | ||
String apiKey, | ||
String deploymentName, | ||
Integer timeout, // TODO use duration instead | ||
Integer maxRetries, | ||
Boolean logRequestsAndResponses, | ||
String userAgentSuffix, | ||
Integer dimensions, | ||
Map<String, String> customHeaders, | ||
String nonAzureApiKey | ||
) { | ||
} |
35 changes: 18 additions & 17 deletions
35
...-boot-starter/src/main/java/dev/langchain4j/azure/openai/spring/ImageModelProperties.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
package dev.langchain4j.azure.openai.spring; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import java.util.Map; | ||
|
||
@Getter | ||
@Setter | ||
class ImageModelProperties { | ||
record ImageModelProperties( | ||
|
||
String endpoint; | ||
String apiKey; | ||
String nonAzureApiKey; | ||
String deploymentName; | ||
String size; | ||
String quality; | ||
String style; | ||
String responseFormat; | ||
String user; | ||
Integer timeout; | ||
Integer maxRetries; | ||
Boolean logRequestsAndResponses; | ||
String endpoint, | ||
String serviceVersion, | ||
String apiKey, | ||
String deploymentName, | ||
String quality, | ||
String size, | ||
String user, | ||
String style, | ||
String responseFormat, | ||
Integer timeout, | ||
Integer maxRetries, | ||
Boolean logRequestsAndResponses, | ||
String userAgentSuffix, | ||
Map<String, String> customHeaders, | ||
String nonAzureApiKey | ||
){ | ||
} |
Oops, something went wrong.