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

[Question]: How to use Custom Variables via Python API ? #4105

Open
DennLie opened this issue Dec 18, 2024 · 2 comments
Open

[Question]: How to use Custom Variables via Python API ? #4105

DennLie opened this issue Dec 18, 2024 · 2 comments
Assignees
Labels
Feature question Further information is requested

Comments

@DennLie
Copy link

DennLie commented Dec 18, 2024

Describe your problem

I created custom variables "scenario" and "persona" through the Api in my python script.
image

Screenshot 2024-12-18 225007
Now i want to use them like "scenario": "walking on the moon", "persona":"a small green alien named Frank" while maybe the variable "scenario" can change over time. I searched the documentation but maybe its so trivial it is not mentioned or im just to dumb. How can i set and use these custom variables in python?

@DennLie DennLie added the question Further information is requested label Dec 18, 2024
@KevinHuSh
Copy link
Collaborator

It will be supported soon.

KevinHuSh pushed a commit that referenced this issue Dec 19, 2024
### What problem does this PR solve?

Add parameters for ask_chat and fix bugs in list_sessions
#4105
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] New Feature (non-breaking change which adds functionality)

Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn>
@DennLie
Copy link
Author

DennLie commented Dec 19, 2024

Thanks for starting to work on this that quickly! You guys do a great job with this great project and i really appreciate it.

learnerLj pushed a commit to learnerLj/ragflow that referenced this issue Dec 19, 2024
…#4119)

### What problem does this PR solve?

Add parameters for ask_chat and fix bugs in list_sessions
infiniflow#4105
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] New Feature (non-breaking change which adds functionality)

Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants