Adjusted default character truncation to safer levels for local embedding models.
This commit is contained in:
parent
903e5d0aeb
commit
92a47f1994
|
|
@ -64,7 +64,7 @@ if [ -z "$EMBEDDING_API_URL" ]; then
|
|||
fi
|
||||
|
||||
if [ -z "$EMBEDDING_TRUNCATION_LIMIT" ]; then
|
||||
export EMBEDDING_TRUNCATION_LIMIT=1000
|
||||
export EMBEDDING_TRUNCATION_LIMIT=800
|
||||
fi
|
||||
|
||||
# 3. Start the Trading Agents
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
import os
|
||||
from dotenv import load_dotenv
|
||||
from langchain_openai import ChatOpenAI
|
||||
from langchain_google_genai import ChatGoogleGenerativeAI
|
||||
|
||||
# Load environment variables
|
||||
load_dotenv()
|
||||
|
|
@ -12,7 +13,7 @@ def test_google_api():
|
|||
"""Test Google API with different models via local proxy."""
|
||||
|
||||
# Use local proxy
|
||||
proxy_url = "http://localhost:10909"
|
||||
proxy_url = "http://localhost:8080"
|
||||
|
||||
print(f"🔧 Using proxy: {proxy_url}")
|
||||
|
||||
|
|
@ -37,6 +38,7 @@ def test_google_api():
|
|||
llm = ChatGoogleGenerativeAI(
|
||||
model=model_name,
|
||||
max_retries=3,
|
||||
base_url="http://localhost:8080",
|
||||
request_timeout=30
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue