import fix + dealing w/ response in function of n parameter in generation
Browse filesFiles changed (3)
12 unmodified lines13141516171819236 unmodified lines25625725825926012 unmodified linesfrom flows.prompt_template import JinjaPromptfrom backends.llm_lite import LiteLLMBackendlog = logging.get_logger(__name__)236 unmodified linesrole=self.flow_config["assistant_name"],content=answer)return {"api_output": response}12 unmodified lines13141516171819236 unmodified lines25625725825926012 unmodified linesfrom flows.prompt_template import JinjaPromptfrom flows.backends.llm_lite import LiteLLMBackendlog = logging.get_logger(__name__)236 unmodified linesrole=self.flow_config["assistant_name"],content=answer)response = response if len(response) > 1 or len(response) == 0 else response[0]return {"api_output": response}
8 unmodified lines91011121314158 unmodified linesassistant_name: assistantbackend:_target_: backends.llm_lite.LiteLLMBackendapi_infos: ???model_name: "gpt-3.5-turbo"n: 18 unmodified lines91011121314158 unmodified linesassistant_name: assistantbackend:_target_: flows.backends.llm_lite.LiteLLMBackendapi_infos: ???model_name: "gpt-3.5-turbo"n: 1
3 unmodified lines456789103 unmodified linesimport flowsfrom flows.flow_launchers import FlowLauncherfrom backends.api_info import ApiInfofrom flows.utils.general_helpers import read_yaml_filefrom flows import logging3 unmodified lines456789103 unmodified linesimport flowsfrom flows.flow_launchers import FlowLauncherfrom flows.backends.api_info import ApiInfofrom flows.utils.general_helpers import read_yaml_filefrom flows import logging
OpenAIChatAtomicFlow.py+2-2
OpenAIChatAtomicFlow.yaml+1-1
run.py+1-1