@@ -124,6 +124,7 @@ Mix models easily, and districute the load across models. The system will automa
124124- Gemini
125125- OpenAI (w/ Azure OpenAI models)
126126- Nebius with (Llama, DeepSeek, Mistral, Mixtral, dolphin, Qwen and others)
127+ - OpenRouter woth open source models
127128- Custom providers
128129
129130Model string format is the following for Claude, Gemini, OpenAI, Nebius:
@@ -132,16 +133,17 @@ For Azure models format is the following:
132133` "azure/{realm}/{model_name}" `
133134
134135``` python
135- response_llm = client.call(agent.id, context, model = " openai/gpt-4o " )
136+ response_llm = client.call(agent.id, context, model = " openai/o4-mini " )
136137response_llm = client.call(agent.id, context, model = " azure/useast/gpt-4o" )
137138```
138139
139140Custom model string format is the following:
140- ` "custom/{model_name}" `
141- ` provider_url ` is required
141+ ` "custom/{provider_name}/{model_name}" `
142+ where provider is provided in the env variable:
143+ LAMOOM_CUSTOM_PROVIDERS={"provider_name": {"base_url": "https://","key":"key"}}
142144
143145``` python
144- response_llm = client.call(agent.id, context, model = " custom/gpt-4o " , provider_url = " your_model_url " )
146+ response_llm = client.call(agent.id, context, model = " custom/provider_name/model_name " )
145147```
146148
147149### Lamoom Keys
@@ -169,14 +171,14 @@ prompt.add("You're {name}. Say Hello and ask what's their name.", role="system")
169171
170172# Call AI model with Lamoom
171173context = {" name" : " John Doe" }
172- response = client.call(prompt.id, context, " openai/gpt-4o " )
174+ response = client.call(prompt.id, context, " openai/o4-mini " )
173175print (response.content)
174176```
175177
176178### Creating Tests While Using Prompts
177179``` python
178180# Call with test_data to automatically generate tests
179- response = client.call(prompt.id, context, " openai/gpt-4o " , test_data = {
181+ response = client.call(prompt.id, context, " openai/o4-mini " , test_data = {
180182 ' ideal_answer' : " Hello, I'm John Doe. What's your name?" ,
181183 ' model_name' : " gemini/gemini-1.5-flash"
182184})
@@ -202,6 +204,14 @@ client.add_ideal_answer(
202204)
203205```
204206
207+ ### To Add Search Credentials:
208+ - Add Search ENgine id from here:
209+ https://programmablesearchengine.google.com/controlpanel/create
210+
211+ - Get A google Search Key:
212+ https://developers.google.com/custom-search/v1/introduction/?apix=true
213+
214+
205215### Monitoring and Management
206216- ** Test Dashboard** : Review created tests and scores at https://cloud.lamoom.com/tests
207217- ** Prompt Management** : Update prompts and rerun tests for published or saved versions
@@ -219,4 +229,5 @@ We welcome contributions! Please see our Contribution Guidelines for more inform
219229This project is licensed under the Apache2.0 License - see the [ LICENSE] ( LICENSE.txt ) file for details.
220230
221231## Contact
222- For support or contributions, please contact us via GitHub Issues.
232+ For support or contributions, please contact us via GitHub Issues.
233+
0 commit comments