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

Proper chat_id lookup #403

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Proper chat_id lookup #403

wants to merge 3 commits into from

Conversation

M4g3dd0
Copy link

@M4g3dd0 M4g3dd0 commented Jan 23, 2025

"chat_id" is nested under "metadata", in gpt4 models, I assume, it can be under "metadata"{"task_body"}. I did not encounter "chat_id" directly in body yet, so I have added checks for it in those three places. And added generation of "chat_id" in case it is missing. And it is missing always, if you try to use openwebui api for model interaction.

chat_id in body is nested under metadata
@angkk2u
Copy link

angkk2u commented Jan 23, 2025

Hi, there is a typo in line 111. Changing 'chat_tracesy' to 'chat_traces' will make it work properly.

@marcklingen
Copy link
Contributor

@M4g3dd0 did you test this? With the typo this should not have worked

@M4g3dd0
Copy link
Author

M4g3dd0 commented Jan 24, 2025

Not this exact code. I was cleaning it up prior to posting here and did not test this final version. Sorry, my bad.

@DomPolizzi
Copy link

What is preventing this PR from going through? Happy to help DevOps Wizard here 🧙‍♂️

@marcklingen
Copy link
Contributor

We are waiting for review and merge by @tjbck

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.

4 participants