Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ interactions:
user-agent:
- python-httpx/0.28.1
method: GET
uri: https://artifacts.elastic.co/releases/stack.json
uri: https://ela.st/past-stack-releases
response:
body:
string: |-
Expand Down Expand Up @@ -2441,7 +2441,7 @@ interactions:
"end_of_maintenance_date": "2027-01-15",
"is_retired": false,
"retired_date": null,
"manifest": "https://artifacts.elastic.co/releases/stack.json"
"manifest": "https://ela.st/past-stack-releases"
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

The manifest field for this release entry is incorrectly set to https://ela.st/past-stack-releases. Based on the pattern used for all other release entries in this file, this should be https://artifacts.elastic.co/downloads/8.18.8.json (a version-specific download manifest, not the releases list endpoint). Note that there's also a duplicate entry for version "8.18.8" at lines 2425-2433 with the correct manifest value.

Copilot uses AI. Check for mistakes.
},
{
"version": "8.19.0",
Expand Down
2 changes: 1 addition & 1 deletion genai-function-calling/openai-agents/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def get_latest_elasticsearch_version(major_version: int = 0) -> str:
major_version: Major version to filter by (e.g. 7, 8). Defaults to latest
"""
async with AsyncClient() as client:
response = await client.get("https://artifacts.elastic.co/releases/stack.json")
response = await client.get("https://ela.st/past-stack-releases")
response.raise_for_status()
releases = response.json()["releases"]

Expand Down
2 changes: 1 addition & 1 deletion genai-function-calling/semantic-kernel-dotnet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public string GetLatestVersion(
[Description("Major version to filter by (e.g. 8, 9). Defaults to latest")] int? majorVersion = null)
{
using var httpClient = new HttpClient();
var response = httpClient.GetAsync("https://artifacts.elastic.co/releases/stack.json").Result;
var response = httpClient.GetAsync("https://ela.st/past-stack-releases").Result;
var json = response.Content.ReadAsStringAsync().Result;
var releaseData = JsonSerializer.Deserialize<ReleasesResponse>(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ record ReleasesResponse(List<Release> releases) {

@Tool(description = "Returns the latest GA version of Elasticsearch in \"X.Y.Z\" format.")
String getLatestElasticsearchVersion(@ToolParam(description = "Major version to filter by (e.g. 8, 9). Defaults to latest") @Nullable Integer majorVersion) {
ReleasesResponse response = WebClient.create().get().uri("https://artifacts.elastic.co/releases/stack.json")
ReleasesResponse response = WebClient.create().get().uri("https://ela.st/past-stack-releases")
.exchangeToMono(res -> res.mutate()
// Fix incorrect content-type from artifacts.elastic.co
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

The comment references the old endpoint artifacts.elastic.co but the code now uses https://ela.st/past-stack-releases. The comment should be updated to reflect the current endpoint being used.

Suggested change
// Fix incorrect content-type from artifacts.elastic.co
// Fix incorrect content-type from ela.st/past-stack-releases

Copilot uses AI. Check for mistakes.
.headers(hdrs -> hdrs.setContentType(MediaType.APPLICATION_JSON))
Expand Down
2 changes: 1 addition & 1 deletion genai-function-calling/vercel-ai/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const getLatestElasticsearchVersion = tool({
majorVersion: z.number().optional().describe('Major version to filter by (e.g. 8, 9). Defaults to latest'),
}),
execute: async ({majorVersion}) => {
const response = await fetch('https://artifacts.elastic.co/releases/stack.json');
const response = await fetch('https://ela.st/past-stack-releases');
const data = await response.json();
const latest = data.releases
// Filter out non-release versions (e.g. -rc1) and remove " GA" suffix
Expand Down