Skip to content
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

fix: conditionnally add BaseMessage id #87

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

desaxce
Copy link
Contributor

@desaxce desaxce commented Jul 3, 2024

Fixing the error:

Exception: Failed to create generation: {"errors":[{"message":"Variable \"$generation\" got invalid value { id: null, promptId: null, provider: \"test\", model: \"test\", error: null, settings: {}, variables: {}, tags: [\"test\"], tools: null, tokenCount: null, inputTokenCount: null, outputTokenCount: null, ttFirstToken: null, tokenThroughputInSeconds: null, duration: null, messages: [{ role: \"user\", content: \"Hello\" }, { role: \"assistant\", content: \"Hi\" }], messageCompletion: { role: \"assistant\", content: \"Hello back!\" }, type: \"CHAT\" }; Field \"id\" is not defined by type \"GenerationPayloadInput\".","locations":[{"line":2,"column":27}],"extensions":{"code":"UNEXPECTED"}}]}

../../miniconda3/envs/tmp-py-client/lib/python3.9/site-packages/literalai/api/__init__.py:1371: Exception

@desaxce desaxce changed the title fix: remove BaseMessage id fix: conditionnally add BaseMessage id Jul 3, 2024
@desaxce desaxce merged commit 6ffbb91 into main Jul 3, 2024
2 checks passed
@desaxce desaxce deleted the hugues/remove-base-message-id branch July 3, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants