fix: OpenRouter not responding issue
Browse files- .github/README.md +3 -3
- chainlit.md +2 -2
- src/axiom/app.py +7 -10
.github/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# Axiom - A Docs Expert Agent
|
| 2 |
|
| 3 |
-
Axiom is AI Agent specialized in modern AI frameworks, libraries and tools. It can assist in creating AI Agents, RAG systems, chatbots, authentication mechanisms, and even full-stack development. It is built with LangGraph, **MCP Docs Server**, Chainlit and
|
| 4 |
|
| 5 |

|
| 6 |
|
|
@@ -8,7 +8,7 @@ Axiom is AI Agent specialized in modern AI frameworks, libraries and tools. It c
|
|
| 8 |
|
| 9 |
- π€ Interactive chat interface
|
| 10 |
- π Access to multiple documentation sources
|
| 11 |
-
- π¦Ύ Support for multiple models
|
| 12 |
- π¨ Support for image processing and analysis
|
| 13 |
- π Use images and graphs to create production-ready code
|
| 14 |
- π οΈ Customizable model settings (temperature, model version)
|
|
@@ -39,7 +39,7 @@ The agent has access to following documentations:
|
|
| 39 |
|
| 40 |
* UV package manager
|
| 41 |
* Python 3.11+
|
| 42 |
-
*
|
| 43 |
* Docker (optional): If you intend to use the `Dockerfile`, you'll need Docker installed.
|
| 44 |
|
| 45 |
## Installation
|
|
|
|
| 1 |
# Axiom - A Docs Expert Agent
|
| 2 |
|
| 3 |
+
Axiom is AI Agent specialized in modern AI frameworks, libraries and tools. It can assist in creating AI Agents, RAG systems, chatbots, authentication mechanisms, and even full-stack development. It is built with LangGraph, **MCP Docs Server**, Chainlit and Gemini Models, designed to help users create different projects using natural language instructions.
|
| 4 |
|
| 5 |

|
| 6 |
|
|
|
|
| 8 |
|
| 9 |
- π€ Interactive chat interface
|
| 10 |
- π Access to multiple documentation sources
|
| 11 |
+
- π¦Ύ Support for multiple Gemini models
|
| 12 |
- π¨ Support for image processing and analysis
|
| 13 |
- π Use images and graphs to create production-ready code
|
| 14 |
- π οΈ Customizable model settings (temperature, model version)
|
|
|
|
| 39 |
|
| 40 |
* UV package manager
|
| 41 |
* Python 3.11+
|
| 42 |
+
* Google Gemini API Key
|
| 43 |
* Docker (optional): If you intend to use the `Dockerfile`, you'll need Docker installed.
|
| 44 |
|
| 45 |
## Installation
|
chainlit.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# Axiom - A Docs Expert Agent
|
| 2 |
|
| 3 |
-
Axiom is AI Agent specialized in modern AI frameworks, libraries and tools. It can assist in creating AI Agents, RAG systems, chatbots, authentication mechanisms, and even full-stack development. It is built with LangGraph, MCP Docs Server, Chainlit and
|
| 4 |
|
| 5 |
## Features
|
| 6 |
|
|
@@ -9,7 +9,7 @@ Axiom is AI Agent specialized in modern AI frameworks, libraries and tools. It c
|
|
| 9 |
- **Agent Mode:** Ideal for complex tasks like brainstorming, code generation, and web apps creation.
|
| 10 |
- **Chat Mode:** Suited for quick information retrieval and answering questions from the provided documentations.
|
| 11 |
- π Access to multiple documentation sources
|
| 12 |
-
- π¦Ύ Support for multiple models
|
| 13 |
- π¨ Support for image processing and analysis
|
| 14 |
- π Use images and graphs to create production-ready code
|
| 15 |
- π οΈ Customizable model settings (temperature, model version)
|
|
|
|
| 1 |
# Axiom - A Docs Expert Agent
|
| 2 |
|
| 3 |
+
Axiom is AI Agent specialized in modern AI frameworks, libraries and tools. It can assist in creating AI Agents, RAG systems, chatbots, authentication mechanisms, and even full-stack development. It is built with LangGraph, MCP Docs Server, Chainlit and Gemini Models, designed to help users create different projects using natural language instructions.
|
| 4 |
|
| 5 |
## Features
|
| 6 |
|
|
|
|
| 9 |
- **Agent Mode:** Ideal for complex tasks like brainstorming, code generation, and web apps creation.
|
| 10 |
- **Chat Mode:** Suited for quick information retrieval and answering questions from the provided documentations.
|
| 11 |
- π Access to multiple documentation sources
|
| 12 |
+
- π¦Ύ Support for multiple Gemini models
|
| 13 |
- π¨ Support for image processing and analysis
|
| 14 |
- π Use images and graphs to create production-ready code
|
| 15 |
- π οΈ Customizable model settings (temperature, model version)
|
src/axiom/app.py
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 2 |
import chainlit as cl
|
| 3 |
from agent import make_graph
|
| 4 |
|
| 5 |
-
from langchain_openai import ChatOpenAI
|
| 6 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 7 |
from langchain_core.messages import AIMessageChunk, HumanMessage
|
| 8 |
|
|
@@ -105,12 +104,11 @@ async def on_chat_start():
|
|
| 105 |
id="model",
|
| 106 |
label="Gemini - Model",
|
| 107 |
values=[
|
| 108 |
-
"
|
| 109 |
-
"
|
| 110 |
-
"
|
| 111 |
-
"
|
| 112 |
-
"
|
| 113 |
-
"google/gemini-2.5-pro-exp-03-25:free"
|
| 114 |
],
|
| 115 |
initial_index=0,
|
| 116 |
),
|
|
@@ -126,10 +124,9 @@ async def on_chat_start():
|
|
| 126 |
).send()
|
| 127 |
|
| 128 |
# Create model with given settings
|
| 129 |
-
model =
|
| 130 |
model=settings["model"],
|
| 131 |
-
api_key=os.getenv("
|
| 132 |
-
base_url="https://openrouter.ai/api/v1",
|
| 133 |
temperature=settings["temperature"]
|
| 134 |
)
|
| 135 |
|
|
|
|
| 2 |
import chainlit as cl
|
| 3 |
from agent import make_graph
|
| 4 |
|
|
|
|
| 5 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 6 |
from langchain_core.messages import AIMessageChunk, HumanMessage
|
| 7 |
|
|
|
|
| 104 |
id="model",
|
| 105 |
label="Gemini - Model",
|
| 106 |
values=[
|
| 107 |
+
"gemini-2.0-flash",
|
| 108 |
+
"gemini-2.0-flash-lite",
|
| 109 |
+
"gemini-2.0-pro-exp-02-05",
|
| 110 |
+
"gemini-exp-1206",
|
| 111 |
+
"gemini-2.5-pro-exp-03-25"
|
|
|
|
| 112 |
],
|
| 113 |
initial_index=0,
|
| 114 |
),
|
|
|
|
| 124 |
).send()
|
| 125 |
|
| 126 |
# Create model with given settings
|
| 127 |
+
model = ChatGoogleGenerativeAI(
|
| 128 |
model=settings["model"],
|
| 129 |
+
api_key=os.getenv("GOOGLE_API_KEY"),
|
|
|
|
| 130 |
temperature=settings["temperature"]
|
| 131 |
)
|
| 132 |
|