Skip to content

Commit

Permalink
open router fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Aug 29, 2024
1 parent 1d10af8 commit 486d5ea
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions external_components/llm_extraction/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@

# from pydantic import BaseModel, Field
from osm.schemas.metrics_schemas import LLMExtractorMetrics

from llama_index.llms.openrouter import OpenRouter
LLM_MODELS = {
"gpt-4o-2024-08-06": OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key=os.environ.get("OPENROUTER_API_KEY"),
model="gpt-4o-2024-08-06",
)
"gpt-4o-2024-08-06": OpenRouter(
api_key=os.environ["OPENROUTER_API_KEY"],
model="openai/chatgpt-4o-latest",
)
}


Expand Down

0 comments on commit 486d5ea

Please sign in to comment.