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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ uv sync --all-packages

## Provider & Model Compatibility

Atomic Agents depends on the [Instructor](https://github.com/jxnl/instructor) package. This means that in all examples where OpenAI is used, any other API supported by Instructor can also be used, such as Ollama, Groq, Mistral, Cohere, Anthropic, Gemini, [MiniMax](https://www.minimax.io/), and more. For a complete list, please refer to the Instructor documentation on its [GitHub page](https://github.com/jxnl/instructor).
Atomic Agents depends on the [Instructor](https://github.com/jxnl/instructor) package. This means that in all examples where OpenAI is used, any other API supported by Instructor can also be used, such as Ollama, Groq, Mistral, Cohere, Anthropic, Gemini, OpenAI and any OpenAI-compatible API such as OpenRouter, MiniMax, EdenAI, and more. For a complete list, please refer to the Instructor documentation on its [GitHub page](https://github.com/jxnl/instructor).

## Support

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,22 @@ def setup_client(provider):
model = "MiniMax-M3"
model_api_parameters = {"max_tokens": 2048}
assistant_role = "assistant"
elif provider == "8" or provider == "edenai":
from openai import OpenAI as EdenAIClient

api_key = os.getenv("EDENAI_API_KEY")
client = instructor.from_openai(EdenAIClient(base_url="https://api.edenai.run/v3", api_key=api_key))
model = "openai/gpt-4o-mini"
model_api_parameters = {"max_tokens": 2048}
assistant_role = "assistant"
else:
raise ValueError(f"Unsupported provider: {provider}")

return client, model, model_api_parameters, assistant_role


# Prompt the user to choose a provider from one in the list below.
providers_list = ["openai", "anthropic", "groq", "ollama", "gemini", "openrouter", "minimax"]
providers_list = ["openai", "anthropic", "groq", "ollama", "gemini", "openrouter", "minimax", "edenai"]
y = "bold yellow"
b = "bold blue"
g = "bold green"
Expand Down
Loading