Skip to content
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

Mostly implement OpenAPI fetch #208

Merged
merged 47 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
670edb9
remove past gen folder
eksno Apr 12, 2024
f1ce777
packages
eksno Apr 12, 2024
9589ad6
tsconfig
eksno Apr 12, 2024
0c13847
remove client
eksno Apr 12, 2024
2e24943
remove api.ts
eksno Apr 12, 2024
d92cb0d
create client
eksno Apr 12, 2024
b58b616
api things
eksno Apr 12, 2024
00a9940
sessions working like before with new system
eksno Apr 12, 2024
732de31
update more from sessions to be using new system, SessionNavigator is…
eksno Apr 12, 2024
63e67d4
Merge branch 'alpha' into feature/openapi-fetch
eksno Apr 12, 2024
d0b614e
Merge branch 'alpha' into feature/openapi-fetch
eksno Apr 15, 2024
93756d7
convert more to new system
eksno Apr 15, 2024
e2d997e
Merge branch 'alpha' into feature/openapi-fetch
eksno Apr 15, 2024
5c467f4
update api types
eksno Apr 15, 2024
7b6057c
work on converting crews to use api
eksno Apr 15, 2024
18d650b
Merge branch 'alpha' into feature/openapi-fetch
eksno Apr 15, 2024
e254386
update api types
eksno Apr 15, 2024
bbea501
work on converting crews
eksno Apr 15, 2024
b88e970
Merge branch 'alpha' into feature/openapi-fetch
eksno Apr 15, 2024
f4423aa
crews working I think
eksno Apr 15, 2024
b3b705e
prep for tomorrow
eksno Apr 15, 2024
e7cc44d
partially convert api keys to new system
eksno Apr 15, 2024
7ac97e4
ts
eksno Apr 16, 2024
b115272
correct type
eksno Apr 16, 2024
9f82fb3
validate session in hook
eksno Apr 16, 2024
0539953
uncomment thing I'm gonna work on
eksno Apr 16, 2024
ef79689
api keys working I think
eksno Apr 16, 2024
39c40a6
Merge branch 'alpha' into feature/openapi-fetch
eksno Apr 16, 2024
15dee43
update api schema
eksno Apr 17, 2024
b6e403a
work on converting sessions to using new system
eksno Apr 17, 2024
c48507f
fixup api interactions with new api schema
eksno Apr 17, 2024
435401d
api keys kebab case
eksno Apr 17, 2024
0fbe392
get api keys working again again and work on sessions
eksno Apr 18, 2024
5091677
Merge branch 'alpha' into feature/openapi-fetch
eksno Apr 18, 2024
c0a3f3f
update api schema
eksno Apr 18, 2024
548701a
working on crews
eksno Apr 18, 2024
3cb6c03
delete blog
eksno Apr 18, 2024
12977be
finalize delete blog
eksno Apr 18, 2024
9c7b0af
work on crew
eksno Apr 18, 2024
e8b6f82
Merge branch 'alpha' into feature/openapi-fetch
eksno Apr 18, 2024
19f4e46
update api types
eksno Apr 18, 2024
83ba66a
crews page is running at least now
eksno Apr 18, 2024
c1b5fdd
remove unused var
eksno Apr 18, 2024
814c914
fix sonarcloud issue
eksno Apr 18, 2024
03c875c
format
eksno Apr 18, 2024
ce0f883
ignore generated file from prettier
eksno Apr 18, 2024
e126172
please stop crying sonarcloud
eksno Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/api/src/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ def process_crew(crew: Crew) -> tuple[str, CrewProcessed]:
if not crew.prompt:
raise HTTPException(400, "got no prompt")
if len(crew_model.agents) == 0:
raise ValueError("crew had no agents")
raise HTTPException(400, "crew had no agents")
# Validate agents
for agent in crew_model.agents:
if agent.role == "":
raise ValueError(f"agent {agent.id} had no role")
raise HTTPException(400, f"agent {agent.id} had no role")
if agent.title == "":
raise ValueError(f"agent {agent.id} had no title")
raise HTTPException(400, f"agent {agent.id} had no title")
if agent.system_message == "":
raise ValueError(f"agent {agent.id} had no system message")
raise HTTPException(400, f"agent {agent.id} had no system message")

message: str = crew.prompt["content"]
return message, crew_model
Expand Down
3 changes: 0 additions & 3 deletions apps/web/.env.example

This file was deleted.

1 change: 1 addition & 0 deletions apps/web/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
pnpm-lock.yaml
package-lock.json
yarn.lock
src/lib/api/*.d.ts
25 changes: 0 additions & 25 deletions apps/web/generated/core/ApiError.ts

This file was deleted.

17 changes: 0 additions & 17 deletions apps/web/generated/core/ApiRequestOptions.ts

This file was deleted.

11 changes: 0 additions & 11 deletions apps/web/generated/core/ApiResult.ts

This file was deleted.

131 changes: 0 additions & 131 deletions apps/web/generated/core/CancelablePromise.ts

This file was deleted.

32 changes: 0 additions & 32 deletions apps/web/generated/core/OpenAPI.ts

This file was deleted.

Loading
Loading