Skip to content

Commit

Permalink
Merge pull request #12 from all-mute/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
all-mute authored Nov 7, 2024
2 parents f5636dc + 779aea7 commit 54e335e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ sex.py
YStest.py
OStest.py
oaiemb.py
mytest copy.py
mytest copy.py
mytest copy 2.py
2 changes: 1 addition & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def completion(request: Request):
openai_format_response = {
"id": "chatcmpl-42",
"object": "chat.completion",
"created": str(time.time()),
"created": int(time.time()),
"model": f"{model}-by-{yandex_response.modelVersion}",
"system_fingerprint": "42",
"choices": [{
Expand Down
2 changes: 1 addition & 1 deletion app/yandex.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def generate_yandexgpt_stream_response(messages, model: str, temperature:
response_data = {
"id": "chatcmpl-42", # Здесь можно использовать уникальный ID
"object": "chat.completion.chunk",
"created": str(time.time()),
"created": int(time.time()),
"model": "gpt-4o-mini-2024-07-18",
"system_fingerprint": "fp_e2bde53e6",
"choices": [
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"autoauth_keys": ["sk-my", " ", ""], "log_level": "INFO", "embeddings_retry_num": 5, "s_embeddings_delays": [0.050, 0.500, 0.500, 2, 2], "embeddings_batch_size": 5, "app_version": "0.0.4"}
{"autoauth_keys": ["sk-my", " ", ""], "log_level": "INFO", "embeddings_retry_num": 5, "s_embeddings_delays": [0.050, 0.500, 0.500, 2, 2], "embeddings_batch_size": 5, "app_version": "0.0.4.1"}
3 changes: 3 additions & 0 deletions delmeeee.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import time

print(int(time.time()))

0 comments on commit 54e335e

Please sign in to comment.