Neon-Vision-Editor/Neon Vision Editor.xcodeproj
h3p 09d6b8f435 Implement Grok and Gemini for inline code completion; fix exhaustive switch
- Wire up Grok (xAI) and Gemini (Google) API calls inside generateModelCompletion(...)
  - Grok: POST https://api.x.ai/v1/chat/completions with OpenAI-style messages
  - Gemini: POST v1beta/models/<model>:generateContent with contents/parts payload
  - Reuse existing prompt and sanitizeCompletion(_:) to keep output concise
  - Respect missing/empty tokens by short‑circuiting to no-op
- Ensure these providers are only used by inline completion, already gated by isAutoCompletionEnabled

- AIClientFactory: make switch exhaustive by adding `.anthropic` case (returns nil for now)
  - Anthropic is handled directly in ContentView’s inline completion path

Notes:
- No changes to other features or UI flows
- OpenAI and Anthropic implementations remain as previously added
- Gemini model used: gemini-1.5-flash-latest
- Grok model used: grok-2-latest

Testing:
- Toggle code completion with the toolbar button; when disabled, no API calls occur
- With tokens set, select Grok/Gemini and type to trigger suggestions
- Verify suggestions insert without duplication and are trimmed via sanitizeCompletion
- Build to confirm AIClientFactory switch error is resolved
2026-02-04 14:11:28 +01:00
..
project.xcworkspace Adjustments to tabbar approach and syntax highlighting of text code 2025-08-27 13:34:59 +02:00
xcshareddata/xcschemes UI changes. Fixed Sidebar 2026-01-17 12:25:50 +01:00
xcuserdata/h3p.xcuserdatad/xcschemes UI changes. Fixed Sidebar 2026-01-17 12:25:50 +01:00
project.pbxproj Implement Grok and Gemini for inline code completion; fix exhaustive switch 2026-02-04 14:11:28 +01:00