Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Bug]: The API calls of assistant actions using wrong base URL #2798

Closed
1 task done
VPCU opened this issue May 20, 2024 · 0 comments
Closed
1 task done

[Bug]: The API calls of assistant actions using wrong base URL #2798

VPCU opened this issue May 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@VPCU
Copy link

VPCU commented May 20, 2024

What happened?

Assistants fail to run actions because the API calls use wrong base URL.

According to OpenAPI 3.0 documents,

All API endpoints are relative to the base URL. For example, assuming the base URL of https://api.example.com/v1, the /users endpoint refers to https://api.example.com/v1/users.
In OpenAPI 3.0, you use the servers array to specify one or more base URLs for your API.

Steps to Reproduce

In assistant builder, add an action with the schema:

openapi: 3.0.1
servers:
  - url: https://example.com/a/b/c
paths:
  /d:
...

The action would throw an error like "Request failed with status code 404".

However the following schema works:

openapi: 3.0.1
servers:
  - url: https://example.com
paths:
  /a/b/c/d:
...

What browsers are you seeing the problem on?

Chrome

Relevant log output

debug: [required actions] user: <> | thread_id: <>| run_id: <>
["{\"tool\":\"<>\",\"toolInput\":<>... [truncated]"]

error: Request failed with status code 404

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@VPCU VPCU added the bug Something isn't working label May 20, 2024
Repository owner locked and limited conversation to collaborators May 21, 2024
@danny-avila danny-avila converted this issue into discussion #2811 May 21, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant