-
Notifications
You must be signed in to change notification settings - Fork 69
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 about input parameters, history and sessions #38
Comments
Hi @chriso0710 !
It's done through a pattern-matching def derive_fields(language_app: Chain) -> (list[str], list[str]):
match language_app:
case Chain(input_variables=input_variables, output_variables=output_variables):
return input_variables, output_variables
case FnWrapper(
input_variables=input_variables, output_variables=output_variables
):
return input_variables, output_variables
case Chain(prompt=prompt, output_key=output_key):
return prompt.input_variables, [output_key]
case Chain(input_keys=input_keys, output_key=output_key):
return input_keys, [output_key]
case _:
return [language_app.input_key], ["output"]
Right, because currently, there is no support for user sessions. That would allow us to persist the history on the server side.
I am open to suggestions or feature requests. How would you configure or implement a user session for your app? |
Ok, thanks for the answers! I think authentication and sessions for the api requests could be implemented via json web tokens. The server would then also need some kind of storage for api users, tokens, history. This could be in memory or in a database. This might be out of scope for your project ATM, but could become neccesary in the future and/or in production environments. |
Hi there, I just found this repo and it looks very promising.
I have a few qestions, which I could not find in the documentation:
Thank you and best regards
Christian
The text was updated successfully, but these errors were encountered: