mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
Java: Fix documentation to reflect correct enum value for OPEN_AI. (#3114)
Fix pom.xml file to reflect correct class path for example in sample-code README. ### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
This commit is contained in:
@@ -42,7 +42,7 @@ You can define the provider of Open AI (openai.com or Azure), this can be done b
|
||||
property or environment variable to either `OPENAI` or `AZURE_OPEN_AI`, i.e.:
|
||||
|
||||
```shell
|
||||
OPENAI_CLIENT_TYPE=OPENAI ../../mvnw exec:java -Dsample=Example04_CombineLLMPromptsAndNativeCode
|
||||
OPENAI_CLIENT_TYPE=OPEN_AI ../../mvnw exec:java -Dsample=Example04_CombineLLMPromptsAndNativeCode
|
||||
|
||||
OR
|
||||
|
||||
@@ -64,7 +64,7 @@ You can set the location of a properties file, by setting the `CONF_PROPERTIES`
|
||||
|
||||
```shell
|
||||
CONF_PROPERTIES=my.properties \
|
||||
OPENAI_CLIENT_TYPE=OPENAI \
|
||||
OPENAI_CLIENT_TYPE=OPEN_AI \
|
||||
../../mvnw exec:java -Dsample=Example04_CombineLLMPromptsAndNativeCode
|
||||
|
||||
OR
|
||||
@@ -120,8 +120,8 @@ AZURE_OPEN_AI_ENDPOINT="endpoint url" \
|
||||
../../mvnw clean package exec:java -Dsample=Example04_CombineLLMPromptsAndNativeCode
|
||||
|
||||
# OPENAI:
|
||||
OPENAI_CLIENT_TYPE=OPENAI \
|
||||
OPENAI_CLIENT_TYPE=OPEN_AI \
|
||||
OPEN_AI_KEY="my-key" \
|
||||
OPEN_AI_ORGANIZATION_ID="organisation id" \
|
||||
../../mvnw clean package exec:java -Dsample=Example04_CombineLLMPromptsAndNativeCode
|
||||
```
|
||||
```
|
||||
|
||||
@@ -98,10 +98,10 @@
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<mainClass>com.microsoft.semantickernel.syntaxexamples.${sample}</mainClass>
|
||||
<mainClass>com.microsoft.semantickernel.samples.syntaxexamples.${sample}</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user