You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance API functionality and improve UI components
- Integrated OpenAI client into the API handler, allowing for dynamic model and API key usage in queries.
- Updated the configuration to return the active AI provider and default model for better status reporting.
- Refactored query handling to support optional API key and model parameters in requests.
- Enhanced the ChatConsole component with session management features, including renaming and closing threads.
- Improved the ProjectHeaderBar and TopBar components to support theme switching and project management.
- Added new themes and refined the theme management system for better user experience.
These changes aim to enhance the overall functionality and user experience of the demo application, making it more flexible and user-friendly.
writeError(w, "missing query or prompt", http.StatusBadRequest)
100
104
return
101
105
}
106
+
// RAG is required for embeddings and retrieval; api_key/model in body override chat only
102
107
ifh.rag==nil {
103
-
writeJSON(w, map[string]any{"answer": "RAG not configured. Set OPENAI_API_KEY or AZURE_OPENAI_API_KEY + AZURE_OPENAI_ENDPOINT in .env.", "sources": []any{}})
108
+
writeJSON(w, map[string]any{"answer": "RAG not configured. Set OPENAI_API_KEY or AZURE_OPENAI_* in .env.", "sources": []any{}})
0 commit comments