Code Monkey home page Code Monkey logo

python-zhipuai-aur's Introduction

Python ZhipuAI AUR

English | 中文

python-zhipuai package for ArchLinux user.

AUR Repo: https://aur.archlinux.org/packages/python-zhipuai

How to install

Users can install this packages using AUR, it will install the pypi package and depends.

yay -S python-zhipuai

How to use

Please visit API Document to learn how to use.

If you are the first time to use this project, you can visit Console to buy and get your api key.

Demo

I made a simple demo, you can use the demo to use ZhipuAI LLM in your terminal. If you want to use this demo, you can get your API Key and add your IP address to the whitelist, and you can use it by the following turtorials.

  • Features

This demo can get your system language, and it will reply in your system language.

It also works in TTY environment, but TTY works not very well in non-English environment, so TTY will reply you in English.

Subsequently the demo script will continue to be maintained and separated into a separate github project, which I will upload to the AUR and OpenSUSE OBS as the number of users grows.

  • Download demo script
sudo curl -o /usr/local/bin/chatglm https://raw.githubusercontent.com/sengedev/python-zhipuai-aur/main/chatglm
sudo chmod 755 /usr/local/bin/chatglm
  • Set the system path

Set the ZHIPU_AI_API_KEY variable as ZhipuAI API Key.

You can edit /etc/environment, and append these messages.

ZHIPUAI_API_KEY=<YOUR_ZHIPUAI_API_KEY>
  • How to use the demo

You can use this command to use the demo.

  1. Chat mode
chatglm --chat
  1. Answer mode
chatglm "Your Question Here."

Open Source License

This package is the same as upstream and is open source using the MIT protocol, so please follow the open source agreement.

Copyright 2024 sengedev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

python-zhipuai-aur's People

Contributors

sengedev avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.