import axios from 'axios'
import { ReadStream } from 'fs'
import OpenAI from 'openai'
import { ZodType } from 'zod'
import {
OpenaiGenerateTextOptions,
OpenaiProvider,
} from './providers/openai/openai.provider'
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
version: '2' | |
services: | |
influxdb: | |
container_name: influxdb | |
image: docker.io/bitnami/influxdb:1-debian-10 | |
environment: | |
- 'INFLUXDB_ADMIN_USER_PASSWORD=influxdb' | |
- 'K6_INFLUXDB_USERNAME=admin' | |
ports: |
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
const document_create = async (req, res, next) => { | |
try { | |
console.log("routeLog", "document_create"); | |
console.log(req.body, "body") | |
const CPMRN = req.params.CPMRN; | |
const encounters = req.params.encounters; | |
const tags = req.body.props.tags; | |
const attributes = req.body.props.attributes; |
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
{ | |
"_id" : "HO00001421", | |
"theatres" : [ | |
{ | |
"_id" : ObjectId("61143e628284301a1db96afd"), | |
"title" : { | |
"text" : "Paw Patrol: The Movie", | |
"translations" : [] | |
}, | |
"genreIds" : [ |
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
gzip on; | |
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml; | |
# Browser preferred language detection (does NOT require AcceptLanguageModule) | |
map $http_accept_language $accept_language { | |
default en; | |
~*^en en; | |
~*^ar ar; | |
} |
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
#!/bin/bash | |
set -euo pipefail | |
# ------------------------------- | |
# 1. Verify Required Environment Variables | |
# ------------------------------- | |
REQUIRED_VARS=("OPENAI_API_KEY" "ANTHROPIC_API_KEY") | |
for VAR in "${REQUIRED_VARS[@]}"; do | |
if [ -z "${!VAR:-}" ]; then | |
echo "Error: Required environment variable '$VAR' is not set." |
OlderNewer