mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
test(proxy): expect OpenAI's mirrored base_instructions dropped in the Codex catalog integration test
This commit is contained in:
parent
c663a8c008
commit
783b914581
1 changed files with 4 additions and 1 deletions
|
|
@ -63,11 +63,13 @@ def _published_entry() -> dict[str, JsonValue]:
|
|||
|
||||
|
||||
def _openai_entry() -> dict[str, JsonValue]:
|
||||
published: Final = _published_entry()
|
||||
return {
|
||||
**_published_entry(),
|
||||
**published,
|
||||
"slug": OPENAI_SLUG,
|
||||
"display_name": "OpenAI Release",
|
||||
"base_instructions": OPENAI_PROMPT,
|
||||
"model_messages": {**object_value(published["model_messages"]), "instructions_template": OPENAI_PROMPT},
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -140,6 +142,7 @@ def test_a_release_openai_serves_is_fetched_from_openai_with_the_deployment_key_
|
|||
listing: Final = _catalog_listing(gateway, OPENAI_VERSION, OPENAI_SLUG)
|
||||
expected: Final = {
|
||||
**_openai_entry(),
|
||||
"base_instructions": "",
|
||||
"priority": listing[OPENAI_SLUG]["priority"],
|
||||
"visibility": "list",
|
||||
"supported_in_api": True,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue