Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3588

Appkey Configuration - Azure OpenAI

$
0
0

Python Client V4
Version: 1.25.7

We can able to connect directly using the OpenAI module. Here’s the connection function. But inside weaviate we are not sure on the configuration

import os
from openai import AzureOpenAI

client = AzureOpenAI(
azure_endpoint = ‘https://..com’,
api_key=token_response.json()[“access_token”],
api_version=“2023-08-01-preview”
)

response = client.chat.completions.create(
model=“gpt-35-turbo”,
messages=messages,
user=f’{{“appkey”: “{app_key}”}}',
functions=functions,
function_call=“auto”
)


Viewing all articles
Browse latest Browse all 3588

Trending Articles