pythonofftopic | Unsorted

Telegram-канал pythonofftopic - Offtopic

12466

Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)

Subscribe to a channel

Offtopic

AI HERE AI THERE AI EVERYWHERE

Читать полностью…

Offtopic

yaa i modified tg has now its ai rewrite option before send message

Читать полностью…

Offtopic

👋 Hello web developers!
I was checking an external website that uses JavaScript fetch() to retrieve some data and then makes a POST request directly to an external API service.
While inspecting the request in the browser’s Network → Headers tab, I noticed that when the request originates from example.com, the headers contain something like:

Origin: https://example.com
Referer: https://example.com/...

The external API then accepts the request and returns a response successfully. ✅
However, when I copy the same API URL and try to send a POST request to it from my own Python script & with api_dog with different/same data, the request fails with:
{
"error": "Forbidden",
"message": "Origin is not allowed"
}

From what I understand, the external API server is checking the Origin (and possibly Referer) header and only allowing requests coming from example.com.

i found in the tab it was CORS problem when i do request externally?

Is there a legitimate way to make the same API request from a Python backend/script?
If the API requires requests to come from example.com, what exactly is the server validating — the Origin header, Referer, cookies, authentication, or something else?
What should I look for in the browser’s Network tab to understand why the browser request succeeds while my Python request is rejected?
I’m trying to understand how this works from a web-development perspective and what the correct approach would be. 🙏
Thanks!

Edited Below :-
will this doing changing the refere/origin is illegal in what way? police can caught or what

Читать полностью…

Offtopic

it's base64/streaming

Читать полностью…

Offtopic

Today when i was exploring WEB Technologies i found, suppose i am sending a audio file to the user's browser, rather than embadding the audio in a file, i will do somethign blob thigns and from then the frontend js part will make the song from the external audio binary files, so that the user cannot get to download the audio file but he can listen the audio file, though i am not fully what is this things about?
what i s this thigns what topics i need to learn to do this thigns?

Читать полностью…

Offtopic

ye it's early morning for EU

Читать полностью…

Offtopic

But they also announced:

We will adjust the pricing for the Flash series effective from 12:00 Beijing Time on September 10, 2026. During off-peak hours, the unit price will be $0.003 for input cache hits, $0.15 for input cache misses, and $0.6 for output. Peak-hour prices will be double the off-peak rates. Please plan your usage accordingly.

Читать полностью…

Offtopic

I remember dpsk v4 pro can be dumb if you use complex tool calling, but once you call simple tools(ripgrep/sed) in the top of the context it backs to be normal

Читать полностью…

Offtopic

I admit the time to wait was one factor but the result also wasn't spectacular.

Читать полностью…

Offtopic

They announced that was due to the pro is worse than v4.1-flash, and more expensive and slower, so removed it

Читать полностью…

Offtopic

the v3.* dpsk models were gone
they only provide these models now:
deepseek-v4-flash
deepseek-v4.1-flash
deepseek-v4-pro (now redirects to v4.1-flash)
deepseek-v4-flash-vision-exp

Читать полностью…

Offtopic

I haven't checked. Does that mean pro and flash use the same model?

Читать полностью…

Offtopic

and there's a v4.1 pro model right?

Читать полностью…

Offtopic

Deepseek now officially redirect their v4pro model to v4.1 flash

Читать полностью…

Offtopic

a bit of feature wanted: VBA, formula calculation

Читать полностью…

Offtopic

Because my english grammer is too bad, i say to fix the grammer 😅

Читать полностью…

Offtopic

do you use Ai to write your texts?

Читать полностью…

Offtopic

so should you guy say i hsould not use the audio tag in html directly as user can directly download and use those so use some other way to use this right?

Читать полностью…

Offtopic

Why fight the inevitable? I see it as a degree of freedom to go for what I really enjoy doing

And since I'm a uni student I'm cooked either way so ehy not at least enjoy it?

The best and last job is AI research so thats a good start if you wanna have the most confidence in what you're doing

Читать полностью…

Offtopic

which is nice if you're not in SEA

Читать полностью…

Offtopic

I think peak hours of deepseek is just work hours of Chinese

Читать полностью…

Offtopic

Found the announcement. For the sake completeness and context:

DeepSeek plans to officially release the V4.1 Flash model around September 10, 2026 (Beijing Time). After extensive internal and external testing, V4.1 Flash has comprehensively surpassed V4 Pro across all key metrics, including performance, cost, speed, and task completion time. In keeping with our commitment to user responsibility, following the official launch of V4.1 Flash and prior to the release of V4.1 Pro, all requests to the Pro model will be routed to V4.1 Flash and billed at Flash's price. If you encounter any issues during your comparative testing between V4 Pro and V4.1 Flash, please do not hesitate to reach out to us with your feedback. Thank you for your support!

Читать полностью…

Offtopic

6 days ago that was.

Читать полностью…

Offtopic

Oh, so that was the reason I didn't like DeepSeek when I recently tried it out again?

Читать полностью…

Offtopic

And why isn't there a pro anymore? Is it in the making?

Читать полностью…

Offtopic

So, every model that was pro has now been categorized flash?

Читать полностью…

Offtopic

now dpsk have no pro model and only three flash models

Читать полностью…

Offtopic

Meanwhile, Gemini:
v3.1 Pro, v3.8 Flash

Читать полностью…

Offtopic

Hi, does anyone have a Freelancer or Upwork account available for rent?
If so, please send me the price and rental terms on DM.
Thanks!❤️

Читать полностью…

Offtopic

btw, is there any portable thing that act as if I run xlwings & microsoft 365 in a Windows VM?

Читать полностью…
Subscribe to a channel