body:'{"model":"text-davinci-003","prompt":"summarize the following in 50 words or less: ' + body.replace(/['"]+/g, '').trim().replace(/(\r\n|\n|\n)/gm, "") + '","max_tokens":200,"temperature":0}',
constbodyjson = '{"model":"text-davinci-003","prompt":"summarize the following in 50 words or less: ' + body.replace(/['"]+/g, '').trim().replace(/(\r\n|\n|\n)/gm, "") + '","max_tokens":200,"temperature":0}'
console.log(bodyjson)
constotherParam = {
body:bodyjson,
method:'POST'
};
constresponse = awaitfetch(Url,otherParam);
varoutput = awaitresponse.text()
return {output}
}
awaitgetBody()
}
your api address = azure function [for chatgpt api : post]
메일 내용을 요약해서 보여줌
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
constbodyjson = '{"model":"text-davinci-003","prompt":"summarize the following in 50 words or less: ' + body.replace(/['"]+/g, '').trim().replace(/(\r\n|\n|\n)/gm, "") + '","max_tokens":200,"temperature":0}'
console.log(bodyjson)
constotherParam = {
body:bodyjson,
method:'POST'
};
constresponse = awaitfetch(Url,otherParam);
varoutput = awaitresponse.text()
return {output}
}
awaitgetBody()
}
Summarize This Email 선택시 기존에서는 콘솔(개발자모드)에서 내용이 보였으나 이젠 그냥 화면에 보임
constbodyJson ='{"model":"text-davinci-003","prompt":"Reply to the following email and politely and professionally manner while saying no '+ body.replace(/['"]+/g, '').trim().replace(/(\r\n|\n|\r)/gm, "") +'","max_tokens":400,"temperature":0}'
><> helm version WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/bacongobbler/.kube/config version.BuildInfo{Version:"v3.4.1", GitCommit:"c4e74854886b2efe3321e185578e6db9be0a6e29", GitTreeState:"clean", GoVersion:"go1.14.11"} ><> chmod o+r ~/.kube/config ><> helm version
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/bacongobbler/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/bacongobbler/.kube/config
sysetemctl staus나 그 관련 명령어 실행시 제목같은 에러가 날경우 daemon을 실행할때 cgroup을 찾지 못하거나 권한 문제로 이용할수 없게 되어 일어나는 문제라고 한다 도커는 완전 가사화가 아닌 격리의 개념이기 때문에 리눅스의 커널시스템을 어느정도 차용하게 된는데 거기에 있어서 특히 cgroup라는 놈은 리눅스 자원을 그룹단위로 할당하는 역할을 한다 centos컨테이너에서 systemd를 통해 실행하는 daemon이 해당 자원을 할당받지 못하여 생기를문제
해결책
cgroup을 사용할수 있게 설정된 centos이미지를 사용하면된다
FROM centos ENV container docker
~~~ RUN yum -y install systemd; yum clean all; \ (cd /lib/systemd/system/sysinit.target.wants/; for in in *; do [ $i == systemd-tempfiles-setup.service] || rm -f $i;done); \
Error from server (BadRequest): error when creating "deployment-definition.yml": Deployment in version "v1" cannot be handled as a Deployment: no kind "Deployment" is registered for version "apps/v1"
root@nevido home]# more 10-kubeadm.conf # Note: This dropin only works with kubeadm and kubelet v1.11+ [Service] Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf" Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml" Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=cgroupfs" # This is a file that "kubeadm init" and "kubeadm join" generates at runtime, populating the KUBELET_KUBEADM_ARGS variable dynamically EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env # This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably, the user should use # the .NodeRegistration.KubeletExtraArgs object in the configuration files instead. KUBELET_EXTRA_ARGS should be sourced from this file. EnvironmentFile=-/etc/sysconfig/kubelet ExecStart= ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS $KUBELET_CGROUP_ARGS