Skip to content

Commit e8399f8

Browse files
committed
fix more tabs, regen
1 parent 2fc7025 commit e8399f8

File tree

6 files changed

+54
-56
lines changed

6 files changed

+54
-56
lines changed

output/schema/schema.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/reindex/examples/request/ReindexRequestExample1.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ alternatives:
7575
- language: Java
7676
code: |
7777
client.reindex(r -> r
78-
.dest(d -> d
79-
.index("my-new-index-000002")
80-
)
81-
.source(s -> s
82-
.index(List.of("my-index-000001","my-index-000002"))
83-
)
78+
.dest(d -> d
79+
.index("my-new-index-000002")
80+
)
81+
.source(s -> s
82+
.index(List.of("my-index-000001","my-index-000002"))
83+
)
8484
);

specification/eql/search/examples/request/EqlSearchRequestExample2.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@ alternatives:
5555
client.eql().search(s -> s
5656
.index("my-data-stream")
5757
.query(" sequence by process.pid [ file where file.name == \"cmd.exe\" and process.pid != 2013 ][ process where stringContains(process.executable, \"regsvr32\") ] ")
58-
")
5958
);

specification/esql/query/examples/request/QueryRequestExample1.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,4 @@ alternatives:
5353
client.esql().query(q -> q
5454
.includeCcsMetadata(true)
5555
.query(" FROM library,remote-*:library | EVAL year = DATE_TRUNC(1 YEARS, release_date) | STATS MAX(page_count) BY year | SORT year | LIMIT 5 ")
56-
")
5756
);

specification/inference/chat_completion_unified/examples/request/PostChatCompletionRequestExample2.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -152,25 +152,25 @@ alternatives:
152152
- language: Java
153153
code: |
154154
client.inference().chatCompletionUnified(c -> c
155-
.inferenceId("openai-completion")
156-
.chatCompletionRequest(ch -> ch
157-
.messages(List.of(Message.of(m -> m
158-
.content(co -> co
159-
.string("Let's find out what the weather is")
160-
)
161-
.role("assistant")
162-
.toolCalls(t -> t
163-
.id("call_KcAjWtAww20AihPHphUh46Gd")
164-
.function(f -> f
165-
.arguments("{\"location\":\"Boston, MA\"}")
166-
.name("get_current_weather")
167-
)
168-
.type("function")
169-
)),Message.of(me -> me
170-
.content(co -> co
171-
.string("The weather is cold")
172-
)
173-
.role("tool")
174-
.toolCallId("call_KcAjWtAww20AihPHphUh46Gd"))))
175-
)
155+
.inferenceId("openai-completion")
156+
.chatCompletionRequest(ch -> ch
157+
.messages(List.of(Message.of(m -> m
158+
.content(co -> co
159+
.string("Let's find out what the weather is")
160+
)
161+
.role("assistant")
162+
.toolCalls(t -> t
163+
.id("call_KcAjWtAww20AihPHphUh46Gd")
164+
.function(f -> f
165+
.arguments("{\"location\":\"Boston, MA\"}")
166+
.name("get_current_weather")
167+
)
168+
.type("function")
169+
)),Message.of(me -> me
170+
.content(co -> co
171+
.string("The weather is cold")
172+
)
173+
.role("tool")
174+
.toolCallId("call_KcAjWtAww20AihPHphUh46Gd"))))
175+
)
176176
);

specification/inference/chat_completion_unified/examples/request/PostChatCompletionRequestExample3.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -218,29 +218,29 @@ alternatives:
218218
- language: Java
219219
code: |
220220
client.inference().chatCompletionUnified(c -> c
221-
.inferenceId("openai-completion")
222-
.chatCompletionRequest(ch -> ch
223-
.messages(m -> m
221+
.inferenceId("openai-completion")
222+
.chatCompletionRequest(ch -> ch
223+
.messages(m -> m
224224
.content(co -> co
225225
.string("What's the price of a scarf?")
226226
)
227-
.role("user")
228-
)
229-
.toolChoice(t -> t
230-
.object(o -> o
231-
.type("function")
232-
.function(f -> f
233-
.name("get_current_price")
234-
)
235-
)
236-
)
237-
.tools(to -> to
238-
.type("function")
239-
.function(f -> f
240-
.description("Get the current price of a item")
241-
.name("get_current_price")
242-
.parameters(JsonData.fromJson("{\"type\":\"object\",\"properties\":{\"item\":{\"id\":\"123\"}}}"))
243-
)
244-
)
245-
)
227+
.role("user")
228+
)
229+
.toolChoice(t -> t
230+
.object(o -> o
231+
.type("function")
232+
.function(f -> f
233+
.name("get_current_price")
234+
)
235+
)
236+
)
237+
.tools(to -> to
238+
.type("function")
239+
.function(f -> f
240+
.description("Get the current price of a item")
241+
.name("get_current_price")
242+
.parameters(JsonData.fromJson("{\"type\":\"object\",\"properties\":{\"item\":{\"id\":\"123\"}}}"))
243+
)
244+
)
245+
)
246246
);

0 commit comments

Comments
 (0)