Skip to content

Remove automatically add credential tool for openapi tool #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

bindung
Copy link

@bindung bindung commented Feb 5, 2025

No description provided.

@bindung bindung requested review from deepblue and cozaro February 5, 2025 09:01
@bindung
Copy link
Author

bindung commented Feb 5, 2025

(py3.11) ➜  bing_search git:(main) ✗ gptscript --dump-state state_before tool.gpt '{"q":"Kibin"}'
17:59:00 started  [main] [input={"q":"Kibin"}]
17:59:00 sent     [main]
17:59:00 started  [search(2)] [input={"q":"Kibin"}]
2025/02/05 17:59:00 failed to get credentials for tool api.bing.microsoft.comApiKeyAuth: error getting credentials - err: signal: killed, out: ``
(py3.11) ➜  bing_search git:(main) ✗ gptscript --dump-state state_after tool.gpt '{"q":"Kibin"}'
18:00:23 started  [main] [input={"q":"Kibin"}]
18:00:23 sent     [main]
18:00:23 started  [search(2)] [input={"q":"Kibin"}]
2025/02/05 18:00:23 error setting up authentication: did not find the needed environment variables for any of the security options. At least one of these sets of environment variables must be provided: [[GPTSCRIPT_API_BING_MICROSOFT_COM_APIKEYAUTH]]

이전에는 credential store에서 못가져왔다는 오류. 두번째는 ENV에서 못가져왔다는 오류

@bindung
Copy link
Author

bindung commented Feb 5, 2025

Before

{
  "id": "1738745941",
  "program": {
    "name": "tool.gpt",
    "entryToolId": "tool.gpt:Bing Search Tool",
    "toolSet": {
      "https://raw.githubusercontent.com/gptscript-ai/credential/250cac46479a84aa175c5fe3da5adc57f5c1fa37/tool.gpt:token": {
        "name": "token",
        "modelName": "gpt-4o",
        "internalPrompt": null,
        "arguments": {
          "properties": {
            "env": {

After

{
  "id": "1738746024",
  "program": {
    "name": "tool.gpt",
    "entryToolId": "tool.gpt:Bing Search Tool",
    "toolSet": {
      "openapi.yaml:search": {
        "name": "search",
        "description": "Returns search results for a given query using Bing's search engine.",
        "modelName": "gpt-4o",
        "internalPrompt": null,
        "arguments": {

자동으로 credential/250cac46479a84aa175c5fe3da5adc57f5c1fa37/tool.gpt:token 이 추가되지 않는 모습.

@bindung bindung merged commit 3c34e9a into allganize Feb 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants