mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
inject user instruction in the podcast generation task
This commit is contained in:
parent
9c959baadd
commit
2902fd6d28
7 changed files with 50 additions and 13 deletions
|
|
@ -29,6 +29,7 @@ async def create_podcast_transcript(
|
|||
configuration = Configuration.from_runnable_config(config)
|
||||
user_id = configuration.user_id
|
||||
search_space_id = configuration.search_space_id
|
||||
user_prompt = configuration.user_prompt
|
||||
|
||||
# Get user's long context LLM
|
||||
llm = await get_user_long_context_llm(state.db_session, user_id, search_space_id)
|
||||
|
|
@ -38,7 +39,7 @@ async def create_podcast_transcript(
|
|||
raise RuntimeError(error_message)
|
||||
|
||||
# Get the prompt
|
||||
prompt = get_podcast_generation_prompt()
|
||||
prompt = get_podcast_generation_prompt(user_prompt)
|
||||
|
||||
# Create the messages
|
||||
messages = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue