Skip to content

Commit ceee525

Browse files
docs(aigw): README and docker-compose updates for image generation (gpt-image-1-mini 1024x1024 low); align examples and services
Signed-off-by: Hrushikesh Patil <[email protected]>
1 parent 7a7329a commit ceee525

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

cmd/aigw/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ Here are values we use for Ollama:
8080
8181
4. **Create embeddings**:
8282
83-
The `create-embeddings` service uses `curl` to send an embeddings request
83+
The `embeddings` service uses `curl` to send an embeddings request
8484
to the AI Gateway CLI (aigw) which routes it to Ollama.
8585
8686
```bash
87-
docker compose run --rm create-embeddings
87+
docker compose run --rm embeddings
8888
```
8989
9090
5. **Shutdown the example stack**:

cmd/aigw/docker-compose-otel.yaml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -105,34 +105,16 @@ services:
105105
- OPENAI_BASE_URL=http://aigw:1975/v1
106106
- OPENAI_API_KEY=unused
107107

108-
# embeddings is the standard OpenAI client (`openai` in pip), instrumented
108+
# create-embeddings is the standard OpenAI client (`openai` in pip), instrumented
109109
# with the following OpenTelemetry instrumentation libraries:
110110
# - openinference-instrumentation-openai (embeddings spans)
111111
# - opentelemetry-instrumentation-httpx (HTTP client spans and trace headers)
112-
embeddings:
112+
create-embeddings:
113113
build:
114114
context: ../../tests/internal/testopeninference
115115
dockerfile: Dockerfile.openai_client
116116
target: create-embeddings
117-
container_name: embeddings
118-
profiles: ["test"]
119-
env_file:
120-
- ../../.env.ollama
121-
- .env.otel.${COMPOSE_PROFILES:-console}
122-
environment:
123-
- OPENAI_BASE_URL=http://aigw:1975/v1
124-
- OPENAI_API_KEY=unused
125-
126-
# completion is the standard OpenAI client (`openai` in pip), instrumented
127-
# with the following OpenTelemetry instrumentation libraries:
128-
# - openinference-instrumentation-openai (completions spans)
129-
# - opentelemetry-instrumentation-httpx (HTTP client spans and trace headers)
130-
completion:
131-
build:
132-
context: ../../tests/internal/testopeninference
133-
dockerfile: Dockerfile.openai_client
134-
target: completion
135-
container_name: completion
117+
container_name: create-embeddings
136118
profiles: ["test"]
137119
env_file:
138120
- ../../.env.ollama

0 commit comments

Comments
 (0)