Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 7c661a2

Browse files
Merge pull request #136 from Chainlit/clement/eng-2037-update-prompt-fetch-in-sdk
feat: update prompt version definition
2 parents ffdaeaa + 1bf029d commit 7c661a2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

literalai/api/gql.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,17 +1024,20 @@
10241024
GET_PROMPT_VERSION = """
10251025
query GetPrompt($id: String, $name: String, $version: Int) {
10261026
promptVersion(id: $id, name: $name, version: $version) {
1027-
id
10281027
createdAt
1029-
updatedAt
1030-
type
1028+
id
1029+
label
1030+
settings
1031+
status
1032+
tags
10311033
templateMessages
10321034
tools
1033-
settings
1035+
type
1036+
updatedAt
1037+
url
10341038
variables
10351039
variablesDefaultValues
10361040
version
1037-
url
10381041
lineage {
10391042
name
10401043
}

tests/e2e/test_e2e.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ async def test_step(self, client: LiteralClient, async_client: AsyncLiteralClien
176176
await async_client.flush()
177177
is_deleted = await async_client.api.delete_step(id=step.id)
178178
assert is_deleted is True, "Step should be deleted"
179+
time.sleep(1)
179180

180181
deleted_step = await async_client.api.get_step(id=step.id)
181182

0 commit comments

Comments
 (0)