Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,11 @@ from llama_cpp_agent.tools import WebSearchTool
|
|
| 19 |
from llama_cpp_agent.prompt_templates import web_search_system_prompt, research_system_prompt
|
| 20 |
from langchain import HuggingFaceHub
|
| 21 |
from llama_cpp_agent.llm_output_settings import LlmStructuredOutputSettings, LlmStructuredOutputType
|
|
|
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# UI related imports and definitions
|
| 25 |
css = """
|
|
@@ -106,7 +110,7 @@ class HuggingFaceHubWrapper:
|
|
| 106 |
|
| 107 |
def get_provider_default_settings(self):
|
| 108 |
return LlmStructuredOutputSettings(
|
| 109 |
-
output_type=LlmStructuredOutputType.JSON
|
| 110 |
include_system_prompt=False,
|
| 111 |
include_user_prompt=False,
|
| 112 |
include_assistant_prompt=False,
|
|
|
|
| 19 |
from llama_cpp_agent.prompt_templates import web_search_system_prompt, research_system_prompt
|
| 20 |
from langchain import HuggingFaceHub
|
| 21 |
from llama_cpp_agent.llm_output_settings import LlmStructuredOutputSettings, LlmStructuredOutputType
|
| 22 |
+
from llama_cpp_agent.llm_output_settings import LlmStructuredOutputType
|
| 23 |
|
| 24 |
+
print("Available LlmStructuredOutputType options:")
|
| 25 |
+
for option in LlmStructuredOutputType:
|
| 26 |
+
print(option)
|
| 27 |
|
| 28 |
# UI related imports and definitions
|
| 29 |
css = """
|
|
|
|
| 110 |
|
| 111 |
def get_provider_default_settings(self):
|
| 112 |
return LlmStructuredOutputSettings(
|
| 113 |
+
output_type=LlmStructuredOutputType.DICT, # Changed from JSON to DICT
|
| 114 |
include_system_prompt=False,
|
| 115 |
include_user_prompt=False,
|
| 116 |
include_assistant_prompt=False,
|