fix ollama
This commit is contained in:
@@ -28,7 +28,7 @@ DEFAULT_CONFIG: dict[str, object] = {
|
||||
"llm_model": "",
|
||||
"llm_timeout": 180,
|
||||
"profile_advisor_enabled": False,
|
||||
"profile_advisor_model": "qwen2.5:3b-instruct",
|
||||
"profile_advisor_model": "qwen3:8b",
|
||||
"profile_advisor_timeout": 240,
|
||||
"profile_advisor_interval_seconds": 300,
|
||||
"field_confidence_threshold": 60,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -41,7 +41,7 @@ def ollama_summary(
|
||||
timeout: int | None = None,
|
||||
) -> str:
|
||||
host = os.getenv("OLLAMA_HOST", "http://127.0.0.1:11434").rstrip("/")
|
||||
selected_model = model or os.getenv("OLLAMA_MODEL", "qwen2.5:7b-instruct")
|
||||
selected_model = model or os.getenv("OLLAMA_MODEL", "llama3.1")
|
||||
selected_timeout = timeout or int(os.getenv("OLLAMA_TIMEOUT", "180"))
|
||||
prompt = {
|
||||
"analysis": analysis or {},
|
||||
@@ -378,7 +378,7 @@ def ollama_profile_advice(
|
||||
ambiguous_fields_by_stream: dict[str, list[str]] | None = None,
|
||||
) -> list[dict[str, object]]:
|
||||
host = os.getenv("OLLAMA_HOST", "http://127.0.0.1:11434").rstrip("/")
|
||||
selected_model = model or os.getenv("FGAI_PROFILE_ADVISOR_MODEL", "qwen2.5:3b-instruct")
|
||||
selected_model = model or os.getenv("FGAI_PROFILE_ADVISOR_MODEL", "qwen3:8b")
|
||||
selected_timeout = timeout or int(os.getenv("FGAI_PROFILE_ADVISOR_TIMEOUT", "240"))
|
||||
scoped = bool(ambiguous_fields_by_stream)
|
||||
compact = [
|
||||
|
||||
Reference in New Issue
Block a user