Blog: AI package, ChatView, speech, and ML Kit cn1libs#5082
Closed
shai-almog wants to merge 1 commit into
Closed
Conversation
Covers PRs #5035 and #5057: - com.codename1.ai with LlmClient factories for OpenAI, Anthropic, Gemini, Ollama, and a generic OpenAI-compatible endpoint. - Streaming chat over SSE, tool calls, embeddings, image generation, prompt templates, tokenizer, retry policy, conversation store. - ChatView, ChatBubble, ChatInput, and bindToLlm convenience. - SpeechRecognizer and TextToSpeech in core, with simulator best-effort TTS via say / espeak / SAPI. - SecureStorage non-prompting overloads for LLM API keys. - Simulator Ollama detection + SimulatorRedirect for offline iteration against localhost:11434. - AiDependencyTable for build-time injection of iOS pods, SPM packages, Android Gradle deps, plist usage strings, and Android permissions, with a big-upload guard for >2 GB native blobs. - The cn1-ai-mlkit-{barcode,docscan,face} cn1libs. - Initializr agent skill addition so AGENTS.md-aware agents know the new APIs in newly generated projects.
3 tasks
Contributor
Cloudflare Preview
|
Collaborator
Author
|
Superseded — consolidating the follow-up posts so this release week ships fewer, broader posts. New merged versions in the follow-up PRs to this one. |
3 tasks
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
ChatView,SpeechRecognizer/TextToSpeech,SecureStoragenon-prompting overloads, the build-timeAiDependencyTable, the simulator Ollama redirect) and Document AI/LLM, ChatView, speech, and ML Kit cn1libs from PR #5035 #5057 (the developer-guide chapter, the bundled agent-skill reference, the LanguageTool word list updates).LlmClient.openai/anthropic/gemini/ollama, streaming SSE chat, the rest of the value-type taxonomy (tool calls, embeddings, image generation), theChatViewcomponent, the speech APIs, the build-time dependency injection (with thecn1.ai.requiresBigUploadguard for native blobs over 2 GB), and the ML Kit cn1libs.AGENTS.mdcovers the new APIs.File
docs/website/content/blog/ai-llm-chat-and-mlkit.md— single new file.Sequencing
Branches off
master; intended to publish after the router post (#5080). Front matter date is2026-06-05.Test plan
docs/websitesucceeds./static/blog/ai-llm-chat-and-mlkit.jpg.