mirror of
https://github.com/openai/codex.git
synced 2026-10-20 00:18:49 +00:00
Remove modelSlug from the latest-model resolver output (#53745)
## What changed Update the OpenAI docs sample resolver to return only `model`, `migrationGuideUrl`, and `promptingGuideUrl`, and remove the model-to-slug conversion helper. GitOrigin-RevId: d7cea29ff8121b1a4df3b062d54dcbed6a1589bd
This commit is contained in:
committed by
copyberry
parent
cf0ed4c600
commit
c12cdc924b
@@ -120,10 +120,6 @@ function extractLatestModelInfo(markdown) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function modelToSkillSlug(model) {
|
||||
return model.trim().replace(/\./g, "p");
|
||||
}
|
||||
|
||||
function absoluteUrl(baseUrl, value) {
|
||||
return new URL(value, baseUrl).toString();
|
||||
}
|
||||
@@ -141,7 +137,6 @@ function normalizeInfo(info, baseUrl) {
|
||||
|
||||
return {
|
||||
model,
|
||||
modelSlug: modelToSkillSlug(model),
|
||||
migrationGuideUrl: absoluteUrl(baseUrl, migrationGuide),
|
||||
promptingGuideUrl: absoluteUrl(baseUrl, promptingGuide),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user