@@ -43,10 +43,6 @@ When using Friendli Python SDK, you need to provide a Friendli Token for authent
4343<!-- Start SDK Installation [installation] -->
4444## SDK Installation
4545
46- > [ !TIP]
47- > To finish publishing your SDK to PyPI you must [ run your first generation action] ( https://www.speakeasy.com/docs/github-setup#step-by-step-guide ) .
48-
49-
5046> [ !NOTE]
5147> ** Python version upgrade policy**
5248>
@@ -269,7 +265,7 @@ from friendli import SyncFriendli
269265with SyncFriendli(
270266 token = os.getenv(" FRIENDLI_TOKEN" , " " ),
271267) as friendli:
272- res = friendli.container .chat.complete(
268+ res = friendli.dedicated .chat.complete(
273269 messages = [
274270 {
275271 " content" : " You are a helpful assistant." ,
@@ -429,7 +425,7 @@ with SyncFriendli(
429425operations. These operations will expose the stream as [ Generator] [ generator ] that
430426can be consumed using a simple ` for ` loop. The loop will
431427terminate when the server no longer has any events to send and closes the
432- underlying connection.
428+ underlying connection.
433429
434430The stream is also a [ Context Manager] [ context-manager ] and can be used with the ` with ` statement and will close the
435431underlying connection when the context is exited.
@@ -442,7 +438,7 @@ from friendli import SyncFriendli
442438with SyncFriendli(
443439 token = os.getenv(" FRIENDLI_TOKEN" , " " ),
444440) as friendli:
445- res = friendli.container .chat.stream(
441+ res = friendli.dedicated .chat.stream(
446442 messages = [
447443 {
448444 " content" : " You are a helpful assistant." ,
@@ -453,8 +449,8 @@ with SyncFriendli(
453449 " role" : " user" ,
454450 },
455451 ],
452+ model = " (endpoint-id)" ,
456453 max_tokens = 200 ,
457- model = " (adapter-route)" ,
458454 )
459455
460456 with res as event_stream:
@@ -515,7 +511,7 @@ from friendli.utils import BackoffStrategy, RetryConfig
515511with SyncFriendli(
516512 token = os.getenv(" FRIENDLI_TOKEN" , " " ),
517513) as friendli:
518- res = friendli.container .chat.complete(
514+ res = friendli.dedicated .chat.complete(
519515 messages = [
520516 {
521517 " content" : " You are a helpful assistant." ,
@@ -546,7 +542,7 @@ with SyncFriendli(
546542 retry_config = RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ),
547543 token = os.getenv(" FRIENDLI_TOKEN" , " " ),
548544) as friendli:
549- res = friendli.container .chat.complete(
545+ res = friendli.dedicated .chat.complete(
550546 messages = [
551547 {
552548 " content" : " You are a helpful assistant." ,
@@ -628,7 +624,7 @@ with SyncFriendli(
628624 server_url = " https://api.friendli.ai" ,
629625 token = os.getenv(" FRIENDLI_TOKEN" , " " ),
630626) as friendli:
631- res = friendli.container .chat.complete(
627+ res = friendli.dedicated .chat.complete(
632628 messages = [
633629 {
634630 " content" : " You are a helpful assistant." ,
@@ -658,7 +654,7 @@ from friendli import SyncFriendli
658654with SyncFriendli(
659655 token = os.getenv(" FRIENDLI_TOKEN" , " " ),
660656) as friendli:
661- res = friendli.container .chat.complete(
657+ res = friendli.dedicated .chat.complete(
662658 messages = [
663659 {
664660 " content" : " You are a helpful assistant." ,
0 commit comments