-
Notifications
You must be signed in to change notification settings - Fork 10
Response API: Async #218
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
Response API: Async #218
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3c8f76f
added assistant table
3a2918f
getting first version of code out
8502c72
using response API with assistant
de5d851
reverting unnecesary code
e931aea
refactor few things in threads.py
31efadc
added support for accepting and returning additional params
f600d46
Merge branch 'main' into feature/response-api
AkhileshNegi fff348a
updating migration head
b7517a3
added logs
1e619fe
added seed credentials
c2d18ff
first stab at writing testcases
d9b963b
added testcase with seeded assitant
bcc6606
Merge branch 'main' into feature/response-api
AkhileshNegi ae4a2c0
formatting
64ab254
refactoring for assitant code
c0a09e1
cleanup
8a856f0
updating logs for consistency
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
backend/app/alembic/versions/8eefcfedc409_create_assistant_table.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| """create assistant table | ||
|
|
||
| Revision ID: 8757b005d681 | ||
| Revises: 8e7dc5eab0b0 | ||
| Create Date: 2025-06-16 13:40:10.447538 | ||
|
|
||
| """ | ||
| from alembic import op | ||
| import sqlalchemy as sa | ||
| import sqlmodel.sql.sqltypes | ||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "8757b005d681" | ||
| down_revision = "8e7dc5eab0b0" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| op.create_table( | ||
| "openai_assistant", | ||
| sa.Column("id", sa.Integer(), nullable=False), | ||
| sa.Column("assistant_id", sa.VARCHAR(length=255), nullable=False), | ||
| sa.Column("name", sa.VARCHAR(length=255), nullable=False), | ||
| sa.Column("max_num_results", sa.Integer, nullable=False), | ||
| sa.Column("model", sqlmodel.sql.sqltypes.AutoString(), nullable=False), | ||
| sa.Column("instructions", sa.Text(), nullable=False), | ||
| sa.Column("temperature", sa.Float(), nullable=False), | ||
| sa.Column("vector_store_id", sa.VARCHAR(length=255), nullable=False), | ||
| sa.Column("organization_id", sa.Integer(), nullable=False), | ||
| sa.Column("project_id", sa.Integer(), nullable=False), | ||
| sa.Column("inserted_at", sa.DateTime(), nullable=False), | ||
| sa.Column("updated_at", sa.DateTime(), nullable=False), | ||
| sa.ForeignKeyConstraint( | ||
| ["organization_id"], ["organization.id"], ondelete="CASCADE" | ||
| ), | ||
| sa.ForeignKeyConstraint(["project_id"], ["project.id"], ondelete="CASCADE"), | ||
| sa.PrimaryKeyConstraint("id"), | ||
| ) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| op.drop_table("openai_assistant") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.