Comments (3)
Yes, I have a plan to support that. If you need that immediately, you can find the class GPTModel_API2D_SUPPORT in utils/gpt_interaction.py
; it should be compatiable with Azure OpenAI API by changing url="https://api.openai.com/v1/chat/completions"
to your own endpoint.
from auto-draft.
just set openai.api_base and openai.api_key
from auto-draft.
just set openai.api_base and openai.api_key
Thanks for pointing it out! I just added the following codes in app.py
to support the Azure OpenAI API endpoint.
openai_api_base = os.getenv("OPENAI_API_BASE")
if openai_api_base is not None:
openai.api_base = openai_api_base
from auto-draft.
Related Issues (10)
- Can you tell me how to set OPENAI_API_KEY? HOT 3
- 能支持api2d吗? HOT 1
- Could you provide some examples for the description? HOT 2
- Failed to query from FAISS HOT 5
- Failed to query from FAISS
- 摘要生成完之后,报错显示生成文件夹里没有fig.png HOT 3
- Failed with error "requests.exceptions.SSLError: HTTPSConnectionPool(host='api.semanticscholar.org', port=443)" HOT 1
- GPT4第三方转发商支持
- To observe the feasibility of reducing weight with urinary ketone by reducing vegetable intake to help obese people with low GI diet HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-draft.