Aasher commited on
Commit
91cf9c0
Β·
1 Parent(s): dae3353

fix: OpenRouter not responding issue

Browse files
Files changed (3) hide show
  1. .github/README.md +3 -3
  2. chainlit.md +2 -2
  3. 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 OpenRouter Models, designed to help users create different projects using natural language instructions.
4
 
5
  ![AxiomAgent](/public/axiom.png)
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 using OpenRouter unified API
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
- * OpenRouter API Key
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
  ![AxiomAgent](/public/axiom.png)
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 OpenRouter Models, designed to help users create different projects using natural language instructions.
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 using OpenRouter unified API
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
- "deepseek/deepseek-chat-v3-0324",
109
- "deepseek/deepseek-r1:free",
110
- "google/gemini-2.0-flash:free",
111
- "google/gemini-2.0-pro-exp-02-05:free",
112
- "google/gemini-exp-1206:free",
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 = ChatOpenAI(
130
  model=settings["model"],
131
- api_key=os.getenv("OPENROUTER_API_KEY"),
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