llmclient 0.1.5

Rust LLM client - Gemini, GPT
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export GEMINI_REGION=us-central1
export GEMINI_PROJECT_ID=<my application>
export GEMINI_VERSION=gemini-pro
export GEMINI_URL='https://${GEMINI_REGION}-aiplatform.googleapis.com/v1/projects/${GEMINI_PROJECT_ID}/locations/${GEMINI_REGION}/publishers/google/models/${GEMINI_VERSION}:streamGenerateContent'

export OPENAI_API_KEY=<Open AI API key>
export GPT_VERSION=gpt-4-turbo-preview
export GPT_CHAT_URL=https://api.openai.com/v1/chat/completions

#export GPT_IMAGE_VERSION=dall-e-3
#export GPT_IMAGE_URL=https://api.openai.com/v1/images/generations

#export GPT_EMBEDDING_VERSION=text-embedding-3-small
#export GPT_EMBEDDING_URL=https://api.openai.com/v1/embeddings