Coder Social home page Coder Social logo

glm_shell's Introduction

GLM_SHELL

项目简介

基于GLM API,实现将GLM-4集成到Ubuntun终端。

功能特点

  • 安装简单:提供shell脚本,输入API即可完成集成过程。
  • 方便使用:在命令行即可与GLM模型进行多轮和单轮对话。

安装指南

系统要求

  • Python 3.7 或更高版本

安装步骤

  1. 在官网注册,获取api_key

    智谱AI开放平台 (bigmodel.cn)

  2. 克隆项目到本地

    mkdir glm_shell
    git clone <address>
    
  3. 进入项目目录:

    cd glm_shell
  4. 运行shell脚本

    sudo bash create_chat.sh
  5. 输入合法的GLM API

使用方法

命令行接口

chat <your input>
  1. 无参数:进入多轮对话模式,输入q退出
  2. 有参数:进入单轮对话模式

示例

  1. 多轮对话

    example1

  2. 单轮对话

    example2

许可证

本项目遵循MIT许可证。

联系我

如有问题或建议,请通过以下方式联系我:


glm_shell's People

Stargazers

 avatar  avatar  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.