on-internet

How to force langchain model to use my language instead of English

I created an agent with tools. I am asking the agent about weather (in Russian language). The tool get_weather expects Russian city names (e.g. Москва instead of Moscow), but the model puts English words into my tool My code import os from dotenv import load_dotenv from langchain_openai import ChatOpenAI from langchain_core.tools import tool from langchain.agents import create_agent model = ChatOpenAI(model=os.getenv("MODEL_NAME")) # I am using openai/gpt-oss-20b @tool def get_weather(city: str) -> str: """Возвращает погоду в градусах цельсия""" data = { "москва": "Дождь, +10°C", "сочи": "Солн

Join the discussion →

Salon, One of the Web's Pioneering News Outlets, Shuts Down After 31 Years

"It has been an extraordinary privilege," says the subheading on Thursday's announcement. After 31 years Salon.com will stop publishing, according to an announcement which appeared on the site under the byline "Salon". It remembers that Salon "was an idea about what journalism could be, born at a moment when the internet was still a largely unexplored frontier." When Salon launched in November 1995, the web was a very different place. A small group of journalists set out to create something original: a publication with a strong voice, a curiosity about the world and a belief that the internet

Join the discussion →

Do you still chase peak gadget specs, or did something quieter win out?

submitted by techcortado to asklemmy 1 points | 0 comments Do you still chase peak gadget specs, or did something quieter win out? Honest question after a few upgrade cycles: the gap between “great” and “fine” on a review score often mattered less day to day than battery life, repairability, and whether the maker still ships updates. Curious what you actually weigh now before you buy — no brands required.

Join the discussion →

Docker deployment issue with the browser

I am using a virtual alpine Linux environment to run docker. The issue is the spring boot application starts but when I try it in a browser localhost,,it says site can't be reached. Both the app and database containers are running in the terminal.

Join the discussion →

for people who used linux on desktop then left it. what problems made you leave?

submitted by wall to asklemmy 5 points | 0 comments i used linux many times on desktop and always had problems so i left. some of them are,needing to compile kernel module for my laptop fans speed control and enrolling it in MOK, ms office 365 not working,and most recently on my latest trying of linux just today. kubuntu refusing to boot after i installed it with luks2 encryption. so i just use windows 11 now .

Join the discussion →

Claude Code's 'Don't Ask Again' File Exposes Passwords and Keys in 1,122 Public Copies on GitHub

Be careful with the file .claude/settings.local.json, warns The Hacker News: Passwords and API keys that developers typed into commands they approved in Claude Code are sitting in public GitHub repositories, where anyone can read them. When a user selects "Yes, and don't ask again," Anthropic's AI coding assistant can save the command, word-for-word, including the secret, in a project settings file. Software security company Apiiro said that 1,122 public copies of that file hold at least one secret, though it did not test whether any still work. One company the researchers notified earlier thi

Join the discussion →

Why is min-height and overflow-y not working properly on a flexbox item?

Was trying to find solutions to have flexbox items that continued to stretch to fill pre-existing space within a container, but not stretch beyond those limits to make the container larger. I ended up finding a comment that showed how to make flexbox items that stretched, but began to scroll when they filled up all remaining space and needed to display more content. The comment I followed is here: https://stackoverflow.com/a/14964944/25464899 It works fine, for the most part, however, even though it's meant to "scroll," if enough content is introduced or written it continues to stretch said co

Join the discussion →

How to check what an in-app product looks like before putting in the market?

I'm creating this multiplatform educational app that has in-app purchases included. The program was written with Kotlin in Android Studio, the built in AI is Gemini. I asked Gemini to create for me some in-app purchases, but I have no way to see what it looks like. I asked Gemini is there a way for me to preview it before putting in the market. It responded by saying you have to upload the app to the store and set up testing and billing before finding out. I wanted to know if there's a way to preview the each in app purchase before putting in the market. It's a very important question because

Join the discussion →

How could a library be made to be the only place you can use Full Immersion Virtual reality?

I’m a librarian and I’ve been toying with creating a story in the mid-future where the library’s role has evolved to be a place for people to use full dive virtual reality for free. At the library, where I work each person gets a full hour on the computer (but can ask for an extension if there is not anybody waiting for one). I wanted the hook of the library to be that these VR services are very important but I also foresee VR being very ubiquitous (like how Amazon has ruined bookstores). What creative condition would make people rely on the library for VR, even though it’s easily accessible w

Join the discussion →

SpaceX Default Risk Hits Record High in Tech-Driven Credit Slump

submitted by technocrit to technology 9 points | 0 comments https://archive.is/icLYz SpaceX and CoreWeave Inc. were among the biggest casualties in a broad-based credit slump due to renewed fears of tighter regulation on the artificial intelligence industry. The yields on one of CoreWeave’s bonds soared to a record high of more than 17%, while the cost of insuring SpaceX’s debt against default also rose to its highest level ever. Market watchers warned that a Democratic rout could strengthen the party’s ability to scrutinize Elon Musk’s conduct and impede an anticipated tie-up between Space X

Join the discussion →

Do Data Centers Have a Smaller Effect on Electricity Prices Than We Think?

"According to a new study by researchers at Harvard University and the University of Pennsylvania, data centers are probably having only a small effect on residential electricity prices," reports the Washington Post. "The researchers calculated that these operations were responsible for just 4% of the utility rate increases over the last five years..." There are certainly some areas — like in Pennsylvania, Virginia, Ohio and other states covered by grid operator PJM — where data centers have skyrocketed demand, pushing some costs onto residential customers. But multiple studies by different re

Join the discussion →

Big tech promised to lead on climate. Now it's driving a fossil fuel boom.

submitted by technocrit to technology 23 points | 3 comments https://www.msn.com/en-us/news/other/big-tech-promised-to-lead-on-climate-now-its-driving-a-fossil-fuel-boom/ar-AA2gAjgO Rather than racing toward their net-zero targets, [tech capitalists] are driving emissions sharply higher with their quest to expand “AI” and cloud computing. To support their data centers, tech firms are driving construction of a new generation of supersized, gas-fired power plants that could lock in hundreds of millions of tons of climate pollution for decades to come, according to corporate disclosures and an an

Join the discussion →
Older stories