AI 资讯
What Is Temperature in AI? (And How to Stop Getting Poetry When You Asked for a Grocery List)
What Is Temperature in AI? (And How to Stop Getting Poetry When You Asked for a Grocery List) Remember Magic 8-Balls? Those plastic oracles you'd shake for life advice, only to get "Reply hazy, try again" when you asked if your crush liked you back? Imagine someone added a little dial on the bottom. Turn it all the way to zero and the thing becomes painfully predictable, only ever offering "Yes" or "Most likely." Crank it all the way up and suddenly it's inventing answers that never appeared in the original twenty options, things like "Ask your neighbor's cat" and "The moon suggests Thursday." That dial is temperature, and every AI language model has one. How the dial works Temperature is a setting, usually ranging from 0 to 2, that tells an AI model how much risk to take when picking the next word. The model calculates the probability of every possible next word, then has to pick one. At low temperatures, it plays it safe and picks the most probable option almost every time. At high temperatures, it's willing to gamble on unlikely choices further down the list. This is why you can ask ChatGPT the exact same question twice and get a straightforward answer on Monday and what appears to be surrealist fiction on Tuesday. When you ask ChatGPT to write a professional email at temperature zero, you'll get "Dear Sir or Madam, I am writing to follow up on our previous correspondence..." every single time you hit enter. Set temperature to 1.5 and it might open with "Greetings, fellow traveler of the inbox wilderness" because that phrasing, while statistically improbable, is now in play. Why boring is sometimes good At temperature zero, you get the most boring dinner guest imaginable. It always picks the single most likely next token (the technical term for a chunk of text, usually a word or part of one). No variety, no surprises, just the statistical favorite every single time. This turns out to be perfect when you need factual accuracy, code that actually compiles, or data
开发者
GitHub lets enterprises pin Copilot's OpenTelemetry endpoint
Where Copilot's telemetry stream lands, decided centrally GitHub added a control on July 8 that lets an enterprise mandate where the Copilot Chat extension in VS Code and Copilot CLI send OpenTelemetry data, removing the need for individual developers to set OTEL_* environment variables. Per the GitHub changelog, the setting is delivered through a telemetry block in the enterprise-managed settings, and a managed value takes precedence over environment variables and user settings. Four things are configurable in the block: the OTLP export endpoint and transport ( otlp-http or otlp-grpc ), the OTel service name and resource attributes, exporter headers such as an authentication token for the collector, and whether prompt, response and tool content is captured, with a separate flag for whether developers can change that. Delivery uses the channels documented on the same page: native MDM (Windows Registry or macOS managed preferences), server-managed settings from a signed-in GitHub account, or a file-based managed-settings.json . Where this bites The precedence rule is the point. If a platform team owns the collector and needs traces routed to it, this is exactly the switch they wanted. If a developer had their own OTLP endpoint pointed at a local sink, they will see the session start emitting somewhere else. The changelog does not describe a per-user override once a managed value is set. A scoping note is worth reading twice. The changelog states that managed exporter headers apply only to the Copilot Chat extension's OTLP exporter. The endpoint and transport policy still reach the CLI agent host, but the auth-token flow the changelog calls out is bound to the Chat surface. On-call teams standing up the collector should plan for that asymmetry before it lands as a surprise during triage.
AI 资讯
GitHub Copilot's enterprise managed-settings.json is now GA
GA in a sentence GitHub moved its enterprise managed-settings.json to general availability on July 1, giving GitHub Enterprise Cloud admins a single JSON file that overrides Copilot behaviour in VS Code and Copilot CLI for anyone holding a Copilot Business or Copilot Enterprise seat issued from the enterprise or one of its organizations. The changelog frames it as a place to define AI standards for the tenant. In practice it is a supported home for Copilot policy that shipped one setting at a time in beta up to this point. The five keys the file accepts Five keys are documented at GA: extraKnownMarketplaces , enabledPlugins , strictKnownMarketplaces , disableBypassPermissionsMode , and model . Together they configure trust for extra plugin marketplaces, the enabled-plugins list, strict enforcement of the known-good marketplace list, whether Copilot CLI and the VS Code extension can run in bypass-permission mode, and which model a user is allowed to pick. Value shapes are not enumerated in the changelog itself; the docs page is the reference for the schema. How the file reaches a client The file lives at copilot/managed-settings.json inside the .github-private repository of the organization the enterprise nominates for the role. There is a backward-compatible path at .github/copilot/settings.json for tenants already using the older layout. Copilot clients fetch the file from the server on every authentication, hold it in memory, and refresh it hourly, per the changelog. That server-side file takes precedence over the file-based config a user may have on their own machine. Setup runs through the AI Controls tab in enterprise settings, or the equivalent API endpoint, where an admin picks the hosting organization. Anyone who followed the June rollouts of disableBypassPermissionsMode and strictKnownMarketplaces will recognise the same file and the same repo. GA is what turns the plumbing into a supported product surface. Where it will trip you Two operational details are