From b03fe1fed027a6e168c0f4c11ac8937bc1f7f6d3 Mon Sep 17 00:00:00 2001 From: ivamp Date: Wed, 6 Nov 2024 20:06:09 +0800 Subject: [PATCH] rollback --- buf.gen.yaml | 87 +++++++++++----------------------------------------- 1 file changed, 18 insertions(+), 69 deletions(-) diff --git a/buf.gen.yaml b/buf.gen.yaml index e1e5b6e..8e17b29 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,70 +1,19 @@ -http: - port: 8080 - host: 0.0.0.0 - # the production url - url: http://127.0.0.1:8080 +version: v1 -grpc: - address: 0.0.0.0:9090 - -debug: - enabled: false - -database: - host: 127.0.0.1 - port: 3306 - user: root - password: root - name: db_name - -redis: - host: 127.0.0.1 - port: 6379 - password: "" - db: 0 - -jwks: - url: "" - -metrics: - enabled: true - port: 8081 - host: 0.0.0.0 - -s3: - endpoint: 127.0.0.1:9000 - external_endpoint: 127.0.0.1:9000 - access_key: minio - secret_key: minio123 - bucket: amber - use_ssl: false - region: - -milvus: - host: 127.0.0.1 - port: 19530 - db_name: library - # 由于 Milvus 不支持新增列, 如果更换了 Embedding Model,建议新建一个 Collection - # 或者可以扩展张量 - document_collection: documents - user: - password: - - -kafka: - bootstrap_servers: - - 127.0.0.1:9092 - topic: "amber" - group_id: "" - # Plain - username: "" - password: "" - -openai: - api_key: "" - internal_base_url: http://192.168.81.108:9997/v1 - embedding_dim: 768 - embedding_model: jina-v2-zh - -third_party: - openai_api_key: "" \ No newline at end of file +plugins: + - name: go + out: . + opt: paths=source_relative + - name: go-grpc + out: . + opt: paths=source_relative + - plugin: buf.build/grpc-ecosystem/gateway:v2.22.0 + out: . + opt: + - paths=source_relative + - generate_unbound_methods=true + - plugin: buf.build/grpc-ecosystem/openapiv2:v2.22.0 + out: pkg/protos/document + opt: + - allow_merge +# - merge_file_name=mce-spider \ No newline at end of file