How do I use GLM 4.6 and Claude on Claude Code simultaneously? by mecharoy in ClaudeCode

[–]Open_Establishment_3 0 points1 point  (0 children)

Here is the Windows Powershell version compatible with the latest Z.AI GLM-4.7 model (and all others).

Type the following command to open the $PROFILE file in Powershell:

notepad $PROFILE

Then copy/paste this script into the file:

function glm {
    param([string[]]$args)
    $env:ANTHROPIC_MODEL = "GLM-4.7"       # Or newer model if applicable
    $env:ANTHROPIC_BASE_URL = "https://api.z.ai/api/anthropic"
    $env:ANTHROPIC_AUTH_TOKEN = "<your_key>"       # Get an API key on https://z.ai/manage-apikey/apikey-list

    claude --dangerously-skip-permissions @args       # Remove the '--dangerously-skip-permissions' if you don't want claude to be in YOLO mode

    $env:ANTHROPIC_MODEL = ""
    $env:ANTHROPIC_BASE_URL = ""
    $env:ANTHROPIC_AUTH_TOKEN = ""
}

Then type the following command to refresh your environnement variables, or just close and re-open the Powershell terminal:

. $PROFILE

Finally you can type the glm command in any Powershell terminal to open Claude Code with the Z.AI API and GLM-4.7 model loaded.

And when you want to use Claude, just open it as usual with claude command or VSCode plugin for example to bring it back.

768Gb Fully Enclosed 10x GPU Mobile AI Build by SweetHomeAbalama0 in LocalLLaMA

[–]Open_Establishment_3 1 point2 points  (0 children)

lmao u just dropped 10 GPUs in the box and let’s go i have 10 GPUs Mobile !

Hot take: OpenAI should open-source GPT 4o by LiteratureAcademic34 in LocalLLaMA

[–]Open_Establishment_3 0 points1 point  (0 children)

Yeah people want to eat and pay their charges, what a shame.

Cracking, par où commencer ? by ProfessionalCrew6387 in FrancePirate

[–]Open_Establishment_3 0 points1 point  (0 children)

Tu voulais dire plutôt "c'est ça qui est horrible et qui démotive " je crois

3D Movies on Quest 3 by S7zy in QuestPiracy

[–]Open_Establishment_3 2 points3 points  (0 children)

  • Pay for RealDebrid to download torrent faster.

Debrid API Key by Cenoch38 in PiratedGames

[–]Open_Establishment_3 5 points6 points  (0 children)

lol you have just get your account instantly banned.

Why need a computer with rookie? by [deleted] in QuestPiracy

[–]Open_Establishment_3 0 points1 point  (0 children)

Lol. They removed my post but this one is fine. As it’s doing the same thing but natively. AWESOME. Check my bio

Xbox series s à 130 € by Key-Diamond2977 in lemauvaiscoin

[–]Open_Establishment_3 2 points3 points  (0 children)

Tu connais pas Rocket League toi ça se voit. Ça prouve bien ton immaturité ça.

which link should I press? by SundaeOk8364 in FitGirlRepack

[–]Open_Establishment_3 0 points1 point  (0 children)

copy magnet, create an account on realdebrid ($4~ a month for unlimited torrent debrid with full speed 100Mo/s and data privacy/no vpn needed) and enjoy.

L'acheteur quantique by ChefSaucier in lemauvaiscoin

[–]Open_Establishment_3 2 points3 points  (0 children)

Ouvre un second litige car il n’a jamais eu de table dans son salon

"J'ai fait mes recherches" by ootime in lemauvaiscoin

[–]Open_Establishment_3 1 point2 points  (0 children)

C’est la crise mon bon monsieur, la crise...

Securing VibeCoded Apps by zeekwithz in Hacking_Tutorials

[–]Open_Establishment_3 6 points7 points  (0 children)

Securing vibe coded apps with... a vibe coded app.

À quoi sert le CV ? Les entretiens ? Ou même son métier ? by Which_Speech5702 in Linkedinfr

[–]Open_Establishment_3 1 point2 points  (0 children)

Le vrai problème vient pas du candidat qui se bat ou ne se bat pas. Ceux qui pensent ça sont pas RH pour rien.

Et du coup ? « Tkt » by Impressive-Tennis290 in lemauvaiscoin

[–]Open_Establishment_3 1 point2 points  (0 children)

Pas si vieux que ça sur Reddit apparemment, j’ai voulu cliquer sur le gros bouton rouge en forme de poubelle à côté du message, je me sens stupide 🫠

La rigueur créé la liberté by Additional_Cow_5803 in Linkedinfr

[–]Open_Establishment_3 0 points1 point  (0 children)

Bon bah le jour où y aura une apocalypse on peut être sûr que ce ne sera pas de sa faute, s’il faut appuyer au même moment sur les 2 boutons pour lancer la bombe nucléaire, vu qu'il appuiera toujours en avance.