Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export AWS_SECRET_ACCESS_KEY=''
export SOLANA_RPC_URL=''
export WHITELIST_API_KEY=''
export OPENROUTER_API_KEY=''
export GEMINI_API_KEY=''
export DD_API_KEY=''
export DD_APP_KEY=''
export DD_HOSTNAME=''
Expand Down
4 changes: 2 additions & 2 deletions agent/agent_executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
SUGGESTIONS_MODEL = GOOGLE_GEMINI_20_FLASH_MODEL
ROUTING_MODEL = GOOGLE_GEMINI_FLASH_15_8B_MODEL
REASONING_MODEL = GOOGLE_GEMINI_20_FLASH_MODEL
BASE_URL = "https://openrouter.ai/api/v1"
API_KEY = os.getenv("OPENROUTER_API_KEY")
BASE_URL = "https://generativelanguage.googleapis.com/v1beta/"
API_KEY = os.getenv("GEMINI_API_KEY")
else:
SUGGESTIONS_MODEL = LOCAL_LLM_MODEL
ROUTING_MODEL = LOCAL_LLM_MODEL
Expand Down
2 changes: 1 addition & 1 deletion agent/tools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import List, Optional

from langgraph.graph.graph import RunnableConfig
from langchain_core.runnables.config import RunnableConfig
from langchain_core.tools import BaseTool, tool
from agent.telemetry import track_tool_usage

Expand Down
2 changes: 1 addition & 1 deletion onchain/analytics/analytics_tools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Dict, Any, List, Tuple, Optional
from langchain_core.tools import tool
from langgraph.graph.graph import RunnableConfig
from langchain_core.runnables.config import RunnableConfig
import traceback
import numpy as np
from enum import StrEnum
Expand Down
2 changes: 1 addition & 1 deletion onchain/analytics/test_analytics_tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from langgraph.graph.graph import RunnableConfig
from langchain_core.runnables.config import RunnableConfig

from onchain.analytics.analytics_tools import (
get_coingecko_price_data,
Expand Down
2 changes: 1 addition & 1 deletion onchain/tokens/trending.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Tuple, Optional

from langchain_core.tools import BaseTool, tool
from langgraph.graph.graph import RunnableConfig
from langchain_core.runnables.config import RunnableConfig
from agent.telemetry import track_tool_usage

from api.api_types import TokenMetadata
Expand Down
9 changes: 5 additions & 4 deletions server/server.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from typing import List, Any, Tuple, Dict, Set
from typing import List, Any, Tuple, Dict
import os
import boto3.dynamodb
import boto3.dynamodb.table
import boto3.dynamodb.types
from flask import Flask, request, jsonify, send_from_directory, g
from flask import Flask, request, jsonify, send_from_directory
from flask_cors import CORS
from pydantic import ValidationError, BaseModel
from langgraph.graph.graph import CompiledGraph, RunnableConfig
from pydantic import ValidationError
from langgraph.graph.graph import CompiledGraph
from langchain_core.runnables.config import RunnableConfig
import json
import traceback
import boto3
Expand Down