Skip to content

Commit

Permalink
Merge pull request #89 from OVINC-CN/chore_python
Browse files Browse the repository at this point in the history
chore(python): update python version
  • Loading branch information
OrenZhang authored Dec 16, 2024
2 parents 6d0ec56 + 5a9d26a commit af9b964
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/OVINC-CN/DevTemplateDjango.git",
"commit": "12315cb10b8b85663cba8a7ba806c6a5f1421416",
"commit": "5281a1802f609dde876e1b80816a82c86a202767",
"checkout": "main",
"context": {
"cookiecutter": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
rev: 22.8.0
hooks:
- id: black
language_version: python3.10
language_version: python3.12
args:
- "--line-length=120"
- repo: https://github.com/pycqa/isort
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10.15-slim
FROM python:3.12.7-slim

WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
Expand All @@ -13,5 +13,3 @@ RUN cp env.example .env \
&& rm -rf .env

RUN mkdir -p /usr/src/app/logs /usr/src/app/tmp /usr/share/fonts/zh_cn

RUN bin/proxy_gemini.sh
13 changes: 0 additions & 13 deletions bin/proxy_gemini.sh

This file was deleted.

17 changes: 0 additions & 17 deletions bin/proxy_gemini_macos.sh

This file was deleted.

32 changes: 28 additions & 4 deletions locale/zh_Hans/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-12 10:47+0800\n"
"POT-Creation-Date: 2024-12-16 14:04+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -63,6 +63,9 @@ msgstr "Midjourney"
msgid "Moonshot"
msgstr "Moonshot"

msgid "Claude"
msgstr "Claude"

msgid "1024x1024"
msgstr "1024x1024"

Expand Down Expand Up @@ -129,6 +132,30 @@ msgstr "文本"
msgid "Image URL"
msgstr "图片链接"

msgid "Image"
msgstr "图片"

msgid "Message Start"
msgstr "消息开始"

msgid "Message Delta"
msgstr "消息块"

msgid "Content Block Delta"
msgstr "内容块"

msgid "API"
msgstr "API"

msgid "Chunk"
msgstr "块"

msgid "Fetch"
msgstr "拉取"

msgid "Chat"
msgstr "对话"

msgid "Unauthorized Model"
msgstr "未授权的模型"

Expand Down Expand Up @@ -249,9 +276,6 @@ msgstr "温度"
msgid "Top Probability"
msgstr "优选值"

msgid "Messages too long, please clear all input"
msgstr "消息过长,请清空重试"

msgid "COS"
msgstr "对象存储"

Expand Down
38 changes: 16 additions & 22 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,46 +1,40 @@
# ovinc
ovinc-client==0.3.13
ovinc-client==0.3.14

# Celery
celery==5.4.0


# Async
asgiref==3.8.1
channels[daphne]==4.1.0
channels_redis==4.2.0
channels[daphne]==4.2.0
channels_redis==4.2.1

# Server
gunicorn==22.0.0
gunicorn==23.0.0
uvicorn-worker==0.2.0
uvicorn==0.30.1
websockets==12.0
uvicorn==0.34.0

# Datetime
arrow==1.2.3
arrow==1.3.0

# RSA
pycryptodome==3.20.0

# OpenAI
openai==1.56.1
tiktoken==0.8.0
pillow==10.3.0
pycryptodome==3.21.0

# Gemini
google-generativeai==0.3.2
google_api_core==2.15.0
google-ai-generativelanguage==0.4.0
# tcloud
tencentcloud-sdk-python==3.0.1282

# Hunyuan
tencentcloud-sdk-python==3.0.1279
# OpenAI
openai==1.57.4

# COS
cos-python-sdk-v5==1.9.29
qcloud-python-sts==3.1.5
qcloud-python-sts==3.1.6

# qrcode
qrcode==7.4.2
qrcode==8.0.0

# claude
anthropic==0.40.0

# websocket
websockets==14.1

0 comments on commit af9b964

Please sign in to comment.