Skip to content

Commit 9ab09d9

Browse files
committed
update makefile with oai key env var
Signed-off-by: David Justice <david@devigned.com>
1 parent df9c304 commit 9ab09d9

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

apps/compose/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ build-compose: ## Compose the microservice app with the constituent components.
3535
.PHONY: run
3636
run: ## Run the microservice app after build.
3737
$(info "Running Component Application Using Wasmtime...")
38-
wasmtime serve -S cli $(COMPOSED_COMPONENT_PATH)
38+
wasmtime serve -S cli --env OPENAI_API_KEY="$${OPENAI_API_KEY}" $(COMPOSED_COMPONENT_PATH)
3939

4040
.PHONY: build-and-run
4141
build-and-run: build run ## Build and run the microservice app.

apps/compose/service-go/wit/deps/example-domain-0.3.0/package.wit

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,9 @@ interface chat {
4545
chat: func(request: chat-request) -> result<chat-response, error>;
4646
}
4747

48-
<<<<<<< HEAD
49-
world math {
50-
export adder;
51-
=======
5248
world service {
5349
import types;
5450

5551
export adder;
56-
export chat;
57-
>>>>>>> 8088dd8 (openai chat completion is working)
58-
}
59-
world ai {
60-
import types;
61-
6252
export chat;
6353
}

0 commit comments

Comments
 (0)