Skip to content

Commit

Permalink
update openai example code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil committed Feb 14, 2025
1 parent cba04c3 commit 1d0215c
Show file tree
Hide file tree
Showing 63 changed files with 85 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ requirements: []
resources:
accelerator: H100_40GB
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requirements: []
resources:
accelerator: H100_40GB
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import os

client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
api_url="https://model-xxxxxx.api.baseten.co/environments/production/sync"
base_url="https://model-xxxxxx.api.baseten.co/environments/production/sync/v1"
)

embedding = client.embeddings.create(
Expand Down Expand Up @@ -138,7 +138,7 @@ requirements: []
resources:
accelerator: H100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requirements: []
resources:
accelerator: H100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import os

client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
api_url="https://model-xxxxxx.api.baseten.co/environments/production/sync"
base_url="https://model-xxxxxx.api.baseten.co/environments/production/sync/v1"
)

embedding = client.embeddings.create(
Expand Down Expand Up @@ -137,7 +137,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import os

client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
api_url="https://model-xxxxxx.api.baseten.co/environments/production/sync"
base_url="https://model-xxxxxx.api.baseten.co/environments/production/sync/v1"
)

embedding = client.embeddings.create(
Expand Down Expand Up @@ -137,7 +137,7 @@ requirements: []
resources:
accelerator: A100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requirements: []
resources:
accelerator: A100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import os

client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
api_url="https://model-xxxxxx.api.baseten.co/environments/production/sync"
base_url="https://model-xxxxxx.api.baseten.co/environments/production/sync/v1"
)

embedding = client.embeddings.create(
Expand Down Expand Up @@ -137,7 +137,7 @@ requirements: []
resources:
accelerator: H100_40GB
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requirements: []
resources:
accelerator: H100_40GB
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ requirements: []
resources:
accelerator: A100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requirements: []
resources:
accelerator: A100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ requirements: []
resources:
accelerator: H100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requirements: []
resources:
accelerator: H100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import os

client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
api_url="https://model-xxxxxx.api.baseten.co/environments/production/sync"
base_url="https://model-xxxxxx.api.baseten.co/environments/production/sync/v1"
)

embedding = client.embeddings.create(
Expand Down Expand Up @@ -138,7 +138,7 @@ requirements: []
resources:
accelerator: H100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requirements: []
resources:
accelerator: H100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import os

client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
api_url="https://model-xxxxxx.api.baseten.co/environments/production/sync"
base_url="https://model-xxxxxx.api.baseten.co/environments/production/sync/v1"
)

embedding = client.embeddings.create(
Expand Down Expand Up @@ -137,7 +137,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import os

client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
api_url="https://model-xxxxxx.api.baseten.co/environments/production/sync"
base_url="https://model-xxxxxx.api.baseten.co/environments/production/sync/v1"
)

embedding = client.embeddings.create(
Expand Down Expand Up @@ -138,7 +138,7 @@ requirements: []
resources:
accelerator: H100_40GB
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requirements: []
resources:
accelerator: H100_40GB
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ requirements: []
resources:
accelerator: H100_40GB
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requirements: []
resources:
accelerator: H100_40GB
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import os

client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
api_url="https://model-xxxxxx.api.baseten.co/environments/production/sync"
base_url="https://model-xxxxxx.api.baseten.co/environments/production/sync/v1"
)

embedding = client.embeddings.create(
Expand Down Expand Up @@ -137,7 +137,7 @@ requirements: []
resources:
accelerator: A100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requirements: []
resources:
accelerator: A100
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import os

client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
api_url="https://model-xxxxxx.api.baseten.co/environments/production/sync"
base_url="https://model-xxxxxx.api.baseten.co/environments/production/sync/v1"
)

embedding = client.embeddings.create(
Expand Down Expand Up @@ -137,7 +137,7 @@ requirements: []
resources:
accelerator: L4
cpu: '1'
memory: 8Gi
memory: 10Gi
use_gpu: true
secrets: {}
system_packages: []
Expand Down
Loading

0 comments on commit 1d0215c

Please sign in to comment.