jamesnetherton commented on code in PR #8227:
URL: https://github.com/apache/camel-quarkus/pull/8227#discussion_r2745535530


##########
docs/modules/ROOT/pages/reference/extensions/openai.adoc:
##########
@@ -0,0 +1,94 @@
+// Do not edit directly!
+// This file was generated by 
camel-quarkus-maven-plugin:update-extension-doc-page
+[id="extensions-openai"]
+= OpenAI
+:linkattrs:
+:cq-artifact-id: camel-quarkus-openai
+:cq-native-supported: true
+:cq-status: Stable
+:cq-status-deprecation: Stable
+:cq-description: OpenAI endpoint for chat completion.
+:cq-deprecated: false
+:cq-jvm-since: 3.32.0
+:cq-native-since: 3.32.0
+
+ifeval::[{doc-show-badges} == true]
+[.badges]
+[.badge-key]##JVM since##[.badge-supported]##3.32.0## [.badge-key]##Native 
since##[.badge-supported]##3.32.0##
+endif::[]
+
+OpenAI endpoint for chat completion.
+
+[id="extensions-openai-maven-coordinates"]
+== Maven coordinates
+
+https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-openai[Create
 a new project with this extension on {link-quarkus-code-generator}, 
window="_blank"]
+
+Or add the coordinates to your existing project:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.camel.quarkus</groupId>
+    <artifactId>camel-quarkus-openai</artifactId>
+</dependency>
+----
+ifeval::[{doc-show-user-guide-link} == true]
+Check the xref:user-guide/index.adoc[User guide] for more information about 
writing Camel Quarkus applications.
+endif::[]
+
+[id="extensions-openai-usage"]
+== Usage
+[id="extensions-openai-usage-structured-output-with-output-class-in-native-mode"]
+=== Structured output with output class in native mode
+
+When using structured output with the `outputClass` option in native mode, you 
must ensure that the target class is registered for reflection.
+
+This can be done with the `@RegisterForReflection` annotation or configuration 
property `quarkus.camel.native.reflection.include-patterns`. For example:
+
+[source,java]
+----
+@RegisterForReflection
+public class MyStructuredOutputClass {
+    ...
+}
+----
+
+[source,java]
+----
+public class MyJQRoutes extends RouteBuilder {

Review Comment:
   Whoops - I thought I already fixed that. I'll change it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to