add openai models
Browse files474 unmodified lines475476477478479480114 unmodified lines595596597598599600474 unmodified lines"name": "Codestral 2508","id": "codestral-2508","description": "Mistral Codestral model - specialized for code generation and programming tasks"}]114 unmodified lineselif model_id == "codestral-2508":# Use Mistral client for Codestral modelreturn Mistral(api_key=os.getenv("MISTRAL_API_KEY"))elif model_id == "moonshotai/Kimi-K2-Instruct":provider = "groq"elif model_id == "Qwen/Qwen3-235B-A22B":474 unmodified lines475476477478479480481482483484485486487488489490114 unmodified lines605606607608609610611612613614615616617618619620621622623624474 unmodified lines"name": "Codestral 2508","id": "codestral-2508","description": "Mistral Codestral model - specialized for code generation and programming tasks"},{"name": "GPT-OSS-120B","id": "openai/gpt-oss-120b","description": "OpenAI GPT-OSS-120B model for advanced code generation and general tasks"},{"name": "GPT-OSS-20B","id": "openai/gpt-oss-20b","description": "OpenAI GPT-OSS-20B model for code generation and general tasks"}]114 unmodified lineselif model_id == "codestral-2508":# Use Mistral client for Codestral modelreturn Mistral(api_key=os.getenv("MISTRAL_API_KEY"))elif model_id == "openai/gpt-oss-120b":# Use Hugging Face InferenceClient for GPT-OSS-120B modelreturn InferenceClient(provider="auto",api_key=HF_TOKEN,bill_to="huggingface")elif model_id == "openai/gpt-oss-20b":# Use Hugging Face InferenceClient for GPT-OSS-20B modelreturn InferenceClient(provider="auto",api_key=HF_TOKEN,bill_to="huggingface")elif model_id == "moonshotai/Kimi-K2-Instruct":provider = "groq"elif model_id == "Qwen/Qwen3-235B-A22B":
app.py+24