feat: add MiniMax AI hello world tutorial in 04_hello_genai#29
Open
octo-patch wants to merge 1 commit intopanaversity:mainfrom
Open
feat: add MiniMax AI hello world tutorial in 04_hello_genai#29octo-patch wants to merge 1 commit intopanaversity:mainfrom
octo-patch wants to merge 1 commit intopanaversity:mainfrom
Conversation
- Add 04_hello_genai/03_hello_minimax: standalone MiniMax hello world project using OpenAI-compatible API (M2.7 model, streaming support) - Update LiteLLM example to include MiniMax via openai/ prefix routing - Include 10 unit tests + 3 integration tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
04_hello_genaitutorial series03_hello_minimaxdirectory: standalone hello world project using MiniMax's OpenAI-compatible API with M2.7 model (1M context, streaming support)openai/prefix routing with customapi_baseChanges
New:
04_hello_genai/03_hello_minimax/readme.md: Tutorial covering MiniMax API setup, key features, and getting started guidemyproject/src/myproject/hello.py: Two functions —minimax()for standard chat completion andminimax_stream()for streamingmyproject/pyproject.toml: Project config withopenaidependency and script entry pointsmyproject/tests/test_minimax_unit.py: 10 unit tests (client config, model, temperature, streaming, LiteLLM integration)myproject/tests/test_minimax_integration.py: 3 integration tests (chat completion, streaming, highspeed model)Updated:
04_hello_genai/02_litellm/minimax()function using LiteLLM's OpenAI-compatible routingpyproject.tomlwithminimaxscript entryreadme.mdwith MiniMax API key setup and code exampleWhy MiniMax?
MiniMax offers powerful LLMs with an OpenAI-compatible API, making it easy for students to try an alternative provider. The M2.7 model features a 1M token context window and strong multilingual capabilities.
Test plan
uv run minimaxanduv run minimax_streamwork as documented