承接 elsayed85/laravel-github-copilot-chat 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elsayed85/laravel-github-copilot-chat

最新稳定版本:v0.0.3

Composer 安装命令:

composer require elsayed85/laravel-github-copilot-chat

包简介

A Laravel package to add a chatbot powered by GitHub Copilot to your Laravel application.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Chat With Github Copilot inside Command Line using Laravel.

Installation

You can install the package via composer:

composer require elsayed85/laravel-github-copilot-chat

You can publish the config file with:

php artisan vendor:publish --tag="laravel-github-copilot-chat-config"

This is the contents of the published config file:

return [
    'stream' => true,
    'intent' => false,
    'model' => 'copilot-chat',
    'temperature' => 0.1,
    'top_p' => 1,
    'n' => 1,

    'client_id' => '01ab8ac9400c4e429b23', // Don't change this
    'user_agent' => 'GithubCopilot/3.99.99', // Don't change this
];

Usage

Github Copilot Chat

Run :

php artisan copilot:chat

for First Time You need to login to your github account and copy the code from the terminal and auth with github

Got To https://github.com/login/device/ and enter the code: B720-C162

then after auth you need to confirm that

    ┌ Do you entered the code successfully? ───────────────────────┐
        Yes / No 
    └──────────────────────────────────────────────────────────────┘

Github Copilot CLI

NodeJs Package

To use github-copilot-cli

A CLI experience for letting GitHub Copilot help you on the command line.

GitHub Copilot CLI translates natural language into shell commands, with modes for different domains. After installation, you can use the following three command:

use Elsayed85\CopilotChat\CopilotCli;

$cli = new CopilotCli();
$q = "install laravel";
$cli = $cli->init();
$cli->setQuestion($q);
$a = $cli->shell(); // you can use shell() or git() or gitCli()
// call explanation() after shell() or git() or gitCli() to get explanation of the generated cli command
$explanation = $cli->explanation();
dd($a , $explanation);

Then We Will Generate Copilot Token and it will be saved locally using cache for (30 min) and when it expired another token will be generated automatically.

and Now You can Chat With Github copilot Have Fun :)

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-20