Unable to delete provider profile

未關閉 適合新手
#5,029 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
62/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
rust
領域
cli

研究方向

從 CLI 入口 openshell profile delete 開始,追蹤它如何查找透過 --global 匯入的 profile;將這種查找方式與 openshell profile list 使用的路徑進行比較。issue 沒有提供檔案名稱或測試名稱,因此先找到刪除和列表命令及其測試。完成標準是成功刪除清單中的 litellm-test profile,且它不再出現在清單中。

由索引模型根據 Issue 內容生成。

描述

state:triage-needed
User Story

I use Openshell to sandbox execution of OpenCode harness on local machine.
I configure some providers to access gitlab and LiteLLM.
I've tried to delete an existing provider profile to recreate it and I got an error.
I have to uninstall OpenShell to delete the profile

Problem Statement

Trying to delete a previously created provider profile, I got an error stating that the profile does not exist.

$ openshell profile import -f profiles/litellm2.yaml --global
Imported 1 provider profile.
$ openshell profile list
NAME          TYPE      CATEGORY        SOURCE  SCOPE
gitlab        provider  SOURCE CONTROL  user    platform
litellm-test  provider  INFERENCE       user    platform
$ openshell profile delete litellm-test
! Provider profile litellm-test not found
Impact / Why This Matters

When this happens I have to uninstall Openshell completely.
This matter because it is cumbersome to uninstall OpenShell just to remove a provider profile.

Acceptance Criteria

The profile if correctly deleted.

Reproduction Steps

With the following profile file :

id: litellm-test
display_name: LiteLLM
description: LiteLLM gateway (LLM API, OpenAI-compatible)
category: inference
credentials:
  - name: api_token
    description: LiteLLM API token
    env_vars: [ LITELLM_TOKEN ]
    required: true
    auth_style: bearer
    header_name: authorization
discovery:
  credentials: [ api_token ]
endpoints:
  - host: litellm.workshop.my.company
    port: 443
    protocol: rest
    enforcement: enforce
    rules:
      - allow:
          method: GET
          path: "/**"
      - allow:
          method: HEAD
          path: "/**"
      - allow:
          method: OPTIONS
          path: "/**"
      - allow:
          method: POST
          path: "/v1/**"
      - allow:
          method: POST
          path: "/mcp/**"
binaries:
  - path: /usr/bin/pi
  - path: /usr/local/bin/pi

Run the following commands :

$ openshell profile import -f litellm2.yaml --global
Imported 1 provider profile.
$ openshell profile list
NAME          TYPE      CATEGORY        SOURCE  SCOPE
litellm-test  provider  INFERENCE       user    platform
$ openshell profile delete litellm-test
! Provider profile litellm-test not found
Suggested UX (if applicable)

No response

Environment
  • OpenShell : 0.1.6
  • Ubuntu 24
Logs

主要語言
Rust
星號
20.6k
分支
2k
平均合併
2 天 14 小時
30 天內合併 PR
275

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。