Skip to content

[Java 1.20.0] Prompt Registry Sample Code fixes#527

Open
Jonas-Isr wants to merge 1 commit into
mainfrom
java-prompt-reg-fix
Open

[Java 1.20.0] Prompt Registry Sample Code fixes#527
Jonas-Isr wants to merge 1 commit into
mainfrom
java-prompt-reg-fix

Conversation

@Jonas-Isr

Copy link
Copy Markdown
Member

What Has Changed?

Adopt changes from the below PR in the code samples.

@CharlesDuboisSAP CharlesDuboisSAP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some other code samples in this page are not compiling:

  • history because of NAME
  • both substitutions
  • the import because of promptClient
  • deletion because of the id and a missing ;
  • spring AI

@Jonas-Isr Jonas-Isr changed the title [Java 1.20.0] Prompt Registry code fix [Java 1.20.0] Prompt Registry Sample Code fixes Jun 15, 2026
Comment on lines +325 to +326
.model(LLMModelDetails.create().name("model-name"));
moduleConfig.setPrompt(prompt);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.model(LLMModelDetails.create().name("model-name"));
moduleConfig.setPrompt(prompt);
.model(LLMModelDetails.create().name("model-name"))
.prompt(prompt);

@Jonas-Isr Jonas-Isr self-assigned this Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants