luxe 0.1.4: remembered models, wheel-driven lists, and a steadier phone app
- luxe starts on the model you last chose in this project, then the last one anywhere. Signing in opens the model picker instead of choosing for you. - Every list in a modal takes the mouse wheel and a draggable scrollbar. - The phone app shows reasoning in full, stays put while you read back through a long session, and shows a question's answer on its card. - On Windows, luxe update replaces the running luxe, and a signed-in install no longer sees setup again. - The file tree no longer shows "engine busy" in a large project, loop output is easier to follow, and the name is written lowercase. The CHANGELOG has the full list.
This commit is contained in:
@@ -32,7 +32,7 @@ pub fn estimate_message_tokens(messages: &[Message]) -> u64 {
|
||||
/// Estimate the tokens a request spends before any conversation: the system prompt and the tool
|
||||
/// schemas.
|
||||
///
|
||||
/// Far from negligible — Luxe's harness plus two dozen JSON schemas is tens of thousands of
|
||||
/// Far from negligible — luxe's harness plus two dozen JSON schemas is tens of thousands of
|
||||
/// tokens, and leaving it out of a prompt figure is how a request that "fits" turns into a 400.
|
||||
pub fn estimate_prefix_tokens(system: Option<&str>, tools: &[ToolSchema]) -> u64 {
|
||||
let system = system.map(|text| text.len() as u64 / 4).unwrap_or(0);
|
||||
@@ -176,7 +176,7 @@ pub fn usable_context_window(context_window: u64, max_tokens: u32, reserve_token
|
||||
/// percent on a 200K prompt is thousands of tokens out. Mirrors Pi's margin.
|
||||
pub const CONTEXT_SAFETY_TOKENS: u32 = 4_096;
|
||||
|
||||
/// The smallest output cap Luxe will ask for once the window is full. Useless as an answer, but a
|
||||
/// The smallest output cap luxe will ask for once the window is full. Useless as an answer, but a
|
||||
/// request that asks for zero (or a negative) output is a hard rejection rather than a short reply.
|
||||
const MIN_MAX_TOKENS: u32 = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user