generated from kyegomez/Python-Package-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kye Gomez
authored and
Kye Gomez
committed
Aug 15, 2024
1 parent
24355f6
commit 0109abd
Showing
10 changed files
with
93 additions
and
175 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "swarms-cloud" | ||
version = "0.3.2" | ||
version = "0.3.4" | ||
description = "Swarms Cloud - Pytorch" | ||
license = "MIT" | ||
authors = ["Kye Gomez <[email protected]>"] | ||
|
This file contains 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 |
---|---|---|
@@ -1,83 +1,3 @@ | ||
from swarms_cloud.check_model_list import ( | ||
create_error_response, | ||
) | ||
from swarms_cloud.utils.calculate_pricing import calculate_pricing, count_tokens | ||
from swarms_cloud.loggers.log_api_request_to_supabase import ( | ||
ModelAPILogEntry, | ||
log_to_supabase, | ||
) | ||
from swarms_cloud.schema.openai_protocol import ( # noqa: E501 | ||
ChatCompletionRequest, | ||
ChatCompletionRequestQos, | ||
ChatCompletionResponse, | ||
ChatCompletionResponseChoice, | ||
ChatCompletionResponseStreamChoice, | ||
ChatCompletionStreamResponse, | ||
ChatMessage, | ||
CompletionRequest, | ||
CompletionRequestQos, | ||
CompletionResponse, | ||
CompletionResponseChoice, | ||
CompletionResponseStreamChoice, | ||
CompletionStreamResponse, | ||
DeltaMessage, | ||
EmbeddingsRequest, | ||
EncodeRequest, | ||
EncodeResponse, | ||
ErrorResponse, | ||
GenerateRequest, | ||
GenerateRequestQos, | ||
GenerateResponse, | ||
GenerationConfig, | ||
ModelCard, | ||
ModelList, | ||
ModelPermission, | ||
UsageInfo, | ||
) | ||
from swarms_cloud.schema.openai_spec import ( | ||
InputOpenAISpec, | ||
OpenAIAPIWrapper, | ||
OutputOpenAISpec, | ||
) | ||
from swarms_cloud.utils.api_key_generator import generate_api_key | ||
from swarms_cloud.utils.rate_limiter import rate_limiter | ||
from swarms_cloud.models import * | ||
|
||
__all__ = [ | ||
"create_error_response", | ||
"calculate_pricing", | ||
"count_tokens", | ||
"ModelAPILogEntry", | ||
"log_to_supabase", | ||
"ChatCompletionRequest", | ||
"ChatCompletionRequestQos", | ||
"ChatCompletionResponse", | ||
"ChatCompletionResponseChoice", | ||
"ChatCompletionResponseStreamChoice", | ||
"ChatCompletionStreamResponse", | ||
"ChatMessage", | ||
"CompletionRequest", | ||
"CompletionRequestQos", | ||
"CompletionResponse", | ||
"CompletionResponseChoice", | ||
"CompletionResponseStreamChoice", | ||
"CompletionStreamResponse", | ||
"DeltaMessage", | ||
"EmbeddingsRequest", | ||
"EncodeRequest", | ||
"EncodeResponse", | ||
"ErrorResponse", | ||
"GenerateRequest", | ||
"GenerateRequestQos", | ||
"GenerateResponse", | ||
"GenerationConfig", | ||
"ModelCard", | ||
"ModelList", | ||
"ModelPermission", | ||
"UsageInfo", | ||
"InputOpenAISpec", | ||
"OpenAIAPIWrapper", | ||
"OutputOpenAISpec", | ||
"generate_api_key", | ||
"rate_limiter", | ||
] | ||
from swarms_cloud.utils import * | ||
from swarms_cloud.schema import * | ||
from swarms_cloud.loggers import * |
This file contains 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,9 @@ | ||
from swarms_cloud.loggers.log_api_request_to_supabase import ( | ||
ModelAPILogEntry, | ||
log_to_supabase, | ||
) | ||
|
||
__all__ = [ | ||
"ModelAPILogEntry", | ||
"log_to_supabase", | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,14 +1,75 @@ | ||
from agent_api_schemas import ( | ||
from swarms_cloud.schema.agent_api_schemas import ( | ||
AgentInput, | ||
AgentOutput, | ||
ModelList, | ||
ModelSchema, | ||
) | ||
from swarms_cloud.schema.openai_protocol import ( # noqa: E501 | ||
ChatCompletionRequest, | ||
ChatCompletionRequestQos, | ||
ChatCompletionResponse, | ||
ChatCompletionResponseChoice, | ||
ChatCompletionResponseStreamChoice, | ||
ChatCompletionStreamResponse, | ||
ChatMessage, | ||
CompletionRequest, | ||
CompletionRequestQos, | ||
CompletionResponse, | ||
CompletionResponseChoice, | ||
CompletionResponseStreamChoice, | ||
CompletionStreamResponse, | ||
DeltaMessage, | ||
EmbeddingsRequest, | ||
EncodeRequest, | ||
EncodeResponse, | ||
ErrorResponse, | ||
GenerateRequest, | ||
GenerateRequestQos, | ||
GenerateResponse, | ||
GenerationConfig, | ||
ModelCard, | ||
ModelList, | ||
AgentOutput, | ||
ModelPermission, | ||
UsageInfo, | ||
) | ||
from swarms_cloud.schema.openai_spec import ( | ||
InputOpenAISpec, | ||
OpenAIAPIWrapper, | ||
OutputOpenAISpec, | ||
) | ||
|
||
|
||
__all__ = [ | ||
"AgentInput", | ||
"ModelSchema", | ||
"ModelList", | ||
"AgentOutput", | ||
"ChatCompletionRequest", | ||
"ChatCompletionRequestQos", | ||
"ChatCompletionResponse", | ||
"ChatCompletionResponseChoice", | ||
"ChatCompletionResponseStreamChoice", | ||
"ChatCompletionStreamResponse", | ||
"ChatMessage", | ||
"CompletionRequest", | ||
"CompletionRequestQos", | ||
"CompletionResponse", | ||
"CompletionResponseChoice", | ||
"CompletionResponseStreamChoice", | ||
"CompletionStreamResponse", | ||
"DeltaMessage", | ||
"EmbeddingsRequest", | ||
"EncodeRequest", | ||
"EncodeResponse", | ||
"ErrorResponse", | ||
"GenerateRequest", | ||
"GenerateRequestQos", | ||
"GenerateResponse", | ||
"GenerationConfig", | ||
"ModelCard", | ||
"ModelList", | ||
"ModelPermission", | ||
"UsageInfo", | ||
"InputOpenAISpec", | ||
"OpenAIAPIWrapper", | ||
"OutputOpenAISpec", | ||
] |
This file contains 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
This file contains 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,14 @@ | ||
from swarms_cloud.utils.api_key_generator import generate_api_key | ||
from swarms_cloud.utils.calculate_pricing import calculate_pricing, count_tokens | ||
from swarms_cloud.utils.rate_limiter import rate_limiter | ||
from swarms_cloud.utils.check_model_list import ( | ||
create_error_response, | ||
) | ||
|
||
__all__ = [ | ||
"generate_api_key", | ||
"calculate_pricing", | ||
"count_tokens", | ||
"rate_limiter", | ||
"create_error_response", | ||
] |
File renamed without changes.