Skip to content

feat: update prompt version definition #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 28, 2024
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
13 changes: 8 additions & 5 deletions literalai/api/gql.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,17 +1024,20 @@
GET_PROMPT_VERSION = """
query GetPrompt($id: String, $name: String, $version: Int) {
promptVersion(id: $id, name: $name, version: $version) {
id
createdAt
updatedAt
type
id
label
settings
status
tags
templateMessages
tools
settings
type
updatedAt
url
variables
variablesDefaultValues
version
url
lineage {
name
}
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ async def test_step(self, client: LiteralClient, async_client: AsyncLiteralClien
await async_client.flush()
is_deleted = await async_client.api.delete_step(id=step.id)
assert is_deleted is True, "Step should be deleted"
time.sleep(1)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix flakky test


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

Expand Down
Loading